From f607f320368f9949eb06770275cd9908b1d50e85 Mon Sep 17 00:00:00 2001 From: avolkov Date: Fri, 29 Aug 2003 23:46:21 +0000 Subject: [PATCH] Some code cleanup + comments git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1152 8092fc87-c524-0410-9efc-e669fe64eaf9 --- sc2/src/sc2code/shipyard.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sc2/src/sc2code/shipyard.c b/sc2/src/sc2code/shipyard.c index b6bd8d6b5..f203ac03b 100644 --- a/sc2/src/sc2code/shipyard.c +++ b/sc2/src/sc2code/shipyard.c @@ -981,9 +981,10 @@ DoModifyShips (PMENU_STATE pMS) UnlockStarShip ( &GLOBAL (built_ship_q), hStarShip ); - if ((pMS->delta_item != MODIFY_CREW_FLAG) - && (pMS->delta_item != 0)) - pMS->delta_item = MODIFY_CREW_FLAG; + + // clear out the bought ship index + // so that flash rects work correctly + pMS->delta_item &= MODIFY_CREW_FLAG; } CrewTransaction (crew_delta); }