Skip to content

Commit

Permalink
To bring consistency to double-clicking units, double-clicking a truc…
Browse files Browse the repository at this point in the history
…k now selects all trucks

on screen instead of bringing up the build menu. This closes ticket:1472


git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10389 4a71c877-e1ca-e34f-864e-861f7616d084
  • Loading branch information
perim authored and Git SVN Gateway committed Mar 21, 2010
1 parent e07812d commit 40ebc72
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions src/display.c
Expand Up @@ -2267,25 +2267,15 @@ static void dealWithLMBDClick(void)
if(psDroid->player == selectedPlayer)
{
/* If we've double clicked on a constructor droid, activate build menu */
//if (psDroid->droidType == DROID_CONSTRUCT)
if (psDroid->droidType == DROID_CONSTRUCT ||
psDroid->droidType == DROID_CYBORG_CONSTRUCT)
{
intResetScreen(true);
intConstructorSelected(psDroid);
}
else if (psDroid->droidType == DROID_COMMAND)
if (psDroid->droidType == DROID_COMMAND)
{
intResetScreen(true);
intCommanderSelected(psDroid);
}
else
{
/* Otherwise, activate the droid's group (if any) */
// activateGroup(selectedPlayer,psDroid->group);
// Now selects all of smae type on screen
// Now selects all of same type on screen
selDroidSelection(selectedPlayer,DS_BY_TYPE,DST_ALL_SAME,true);

}
}
}
Expand Down

0 comments on commit 40ebc72

Please sign in to comment.