mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-23 15:13:46 +00:00
Allow shift+click for multiple building placement
This was SVN commit r7519.
This commit is contained in:
@@ -269,9 +269,17 @@ function handleInputBeforeGui(ev)
|
||||
if (ev.button == SDL_BUTTON_LEFT)
|
||||
{
|
||||
if (tryPlaceBuilding())
|
||||
inputState = INPUT_NORMAL;
|
||||
{
|
||||
// If shift is down, let the player continue placing another of the same building
|
||||
if (specialKeyStates[SDLK_RSHIFT] || specialKeyStates[SDLK_LSHIFT])
|
||||
inputState = INPUT_BUILDING_PLACEMENT;
|
||||
else
|
||||
inputState = INPUT_NORMAL;
|
||||
}
|
||||
else
|
||||
{
|
||||
inputState = INPUT_BUILDING_PLACEMENT;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user