From c4eca53dbc08285ef09e0765cd46cc299c22b637 Mon Sep 17 00:00:00 2001 From: mcmartin Date: Sat, 6 Dec 2003 08:33:47 +0000 Subject: [PATCH] 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 --- sc2/src/sc2code/shipyard.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sc2/src/sc2code/shipyard.c b/sc2/src/sc2code/shipyard.c index 57f57e1d8..27e5870b1 100644 --- a/sc2/src/sc2code/shipyard.c +++ b/sc2/src/sc2code/shipyard.c @@ -714,7 +714,7 @@ DoModifyShips (PMENU_STATE pMS) &GLOBAL (built_ship_q), hStarShip ); } - if ((pMS->delta_item & MODIFY_CREW_FLAG) && (hStarShip)) + if ((pMS->delta_item & MODIFY_CREW_FLAG) && (hStarShip)) { SetMenuSounds (MENU_SOUND_UP | MENU_SOUND_DOWN, MENU_SOUND_SELECT | MENU_SOUND_CANCEL); } @@ -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) {