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:
mcmartin
2003-12-06 08:33:47 +00:00
parent ecce133af3
commit c4eca53dbc
+4
View File
@@ -804,6 +804,7 @@ DoModifyShips (PMENU_STATE pMS)
SetFlashRect (&r, (FRAME)0); SetFlashRect (&r, (FRAME)0);
UnlockMutex (GraphicsLock); UnlockMutex (GraphicsLock);
} }
SetMenuSounds (MENU_SOUND_UP | MENU_SOUND_DOWN, MENU_SOUND_SELECT | MENU_SOUND_CANCEL);
return (TRUE); return (TRUE);
} }
@@ -868,6 +869,7 @@ DoModifyShips (PMENU_STATE pMS)
GetGaugeRect (&r, TRUE); GetGaugeRect (&r, TRUE);
SetFlashRect (&r, (FRAME)0); SetFlashRect (&r, (FRAME)0);
SetContext (SpaceContext); SetContext (SpaceContext);
SetMenuSounds (MENU_SOUND_UP | MENU_SOUND_DOWN, MENU_SOUND_SELECT | MENU_SOUND_CANCEL);
} }
else else
{ {
@@ -878,6 +880,7 @@ DoModifyShips (PMENU_STATE pMS)
r.extent.height = 5; r.extent.height = 5;
SetContext (SpaceContext); SetContext (SpaceContext);
SetFlashRect (&r, (FRAME)0); 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) else if (pMS->delta_item & MODIFY_CREW_FLAG)
@@ -889,6 +892,7 @@ DoModifyShips (PMENU_STATE pMS)
&GLOBAL (built_ship_q), hStarShip &GLOBAL (built_ship_q), hStarShip
); );
SetMenuSounds (MENU_SOUND_UP | MENU_SOUND_DOWN, MENU_SOUND_SELECT | MENU_SOUND_CANCEL);
crew_delta = 0; crew_delta = 0;
if (dy < 0) if (dy < 0)
{ {