Fixed some glitches with crew modification (Bug #554)
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1295 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
@@ -804,6 +804,7 @@ DoModifyShips (PMENU_STATE pMS)
|
||||
SetFlashRect (&r, (FRAME)0);
|
||||
UnlockMutex (GraphicsLock);
|
||||
}
|
||||
SetMenuSounds (MENU_SOUND_UP | MENU_SOUND_DOWN, MENU_SOUND_SELECT | MENU_SOUND_CANCEL);
|
||||
|
||||
return (TRUE);
|
||||
}
|
||||
@@ -868,6 +869,7 @@ DoModifyShips (PMENU_STATE pMS)
|
||||
GetGaugeRect (&r, TRUE);
|
||||
SetFlashRect (&r, (FRAME)0);
|
||||
SetContext (SpaceContext);
|
||||
SetMenuSounds (MENU_SOUND_UP | MENU_SOUND_DOWN, MENU_SOUND_SELECT | MENU_SOUND_CANCEL);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -878,6 +880,7 @@ DoModifyShips (PMENU_STATE pMS)
|
||||
r.extent.height = 5;
|
||||
SetContext (SpaceContext);
|
||||
SetFlashRect (&r, (FRAME)0);
|
||||
SetMenuSounds (MENU_SOUND_UP | MENU_SOUND_DOWN, MENU_SOUND_SELECT | MENU_SOUND_CANCEL);
|
||||
}
|
||||
}
|
||||
else if (pMS->delta_item & MODIFY_CREW_FLAG)
|
||||
@@ -889,6 +892,7 @@ DoModifyShips (PMENU_STATE pMS)
|
||||
&GLOBAL (built_ship_q), hStarShip
|
||||
);
|
||||
|
||||
SetMenuSounds (MENU_SOUND_UP | MENU_SOUND_DOWN, MENU_SOUND_SELECT | MENU_SOUND_CANCEL);
|
||||
crew_delta = 0;
|
||||
if (dy < 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user