Logistics and formatting corrections;
Passing UNDEFINED_DELTA where it is not necessary causes an unwanted redraw. Partially fixes bug #461/2. git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1192 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
@@ -831,7 +831,8 @@ DoModifyShips (PMENU_STATE pMS)
|
|||||||
RemoveQueue (&GLOBAL (built_ship_q), hStarShip);
|
RemoveQueue (&GLOBAL (built_ship_q), hStarShip);
|
||||||
FreeStarShip (&GLOBAL (built_ship_q), hStarShip);
|
FreeStarShip (&GLOBAL (built_ship_q), hStarShip);
|
||||||
// refresh SIS display
|
// refresh SIS display
|
||||||
DeltaSISGauges (UNDEFINED_DELTA, UNDEFINED_DELTA, UNDEFINED_DELTA);
|
DeltaSISGauges (UNDEFINED_DELTA, UNDEFINED_DELTA,
|
||||||
|
UNDEFINED_DELTA);
|
||||||
DrawStatusMessage ((UNICODE *)~0);
|
DrawStatusMessage ((UNICODE *)~0);
|
||||||
r.corner.x = pMS->flash_rect0.corner.x;
|
r.corner.x = pMS->flash_rect0.corner.x;
|
||||||
r.corner.y = pMS->flash_rect0.corner.y;
|
r.corner.y = pMS->flash_rect0.corner.y;
|
||||||
@@ -910,8 +911,10 @@ DoModifyShips (PMENU_STATE pMS)
|
|||||||
if (StarShipPtr->ShipInfo.crew_level > 0)
|
if (StarShipPtr->ShipInfo.crew_level > 0)
|
||||||
DeltaSISGauges (0, 0, -GLOBAL (CrewCost));
|
DeltaSISGauges (0, 0, -GLOBAL (CrewCost));
|
||||||
else
|
else
|
||||||
DeltaSISGauges (UNDEFINED_DELTA,UNDEFINED_DELTA,
|
DeltaSISGauges (0, 0,
|
||||||
-(COUNT)ShipCost[GET_RACE_ID (StarShipPtr)]);
|
-(COUNT)ShipCost[
|
||||||
|
GET_RACE_ID (StarShipPtr)
|
||||||
|
]);
|
||||||
++StarShipPtr->ShipInfo.crew_level;
|
++StarShipPtr->ShipInfo.crew_level;
|
||||||
crew_delta = 1;
|
crew_delta = 1;
|
||||||
ShowShipCrew (StarShipPtr, &pMS->flash_rect0);
|
ShowShipCrew (StarShipPtr, &pMS->flash_rect0);
|
||||||
@@ -962,8 +965,10 @@ DoModifyShips (PMENU_STATE pMS)
|
|||||||
- (crew_bought ==
|
- (crew_bought ==
|
||||||
CREW_EXPENSE_THRESHOLD ? 2 : 0));
|
CREW_EXPENSE_THRESHOLD ? 2 : 0));
|
||||||
else
|
else
|
||||||
DeltaSISGauges (UNDEFINED_DELTA,UNDEFINED_DELTA,
|
DeltaSISGauges (0, 0,
|
||||||
(COUNT)ShipCost[GET_RACE_ID (StarShipPtr)]);
|
(COUNT)ShipCost[
|
||||||
|
GET_RACE_ID (StarShipPtr)
|
||||||
|
]);
|
||||||
crew_delta = -1;
|
crew_delta = -1;
|
||||||
--StarShipPtr->ShipInfo.crew_level;
|
--StarShipPtr->ShipInfo.crew_level;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user