Do not overwrite GLOBAL_SIS (CrewEnlisted) when leaving HyperSpace.
This fixes bug #938. Entering combat while *in* HyperSpace appears to still update crew counts appropriately. git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2646 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
@@ -881,9 +881,12 @@ init_sis (void)
|
||||
void
|
||||
uninit_sis (RACE_DESCPTR pRaceDesc)
|
||||
{
|
||||
GLOBAL_SIS (CrewEnlisted) = pRaceDesc->ship_info.crew_level;
|
||||
if (pRaceDesc->ship_info.ship_flags & PLAYER_CAPTAIN)
|
||||
GLOBAL_SIS (CrewEnlisted)--;
|
||||
if (LOBYTE (GLOBAL (CurrentActivity)) != IN_HYPERSPACE)
|
||||
{
|
||||
GLOBAL_SIS (CrewEnlisted) = pRaceDesc->ship_info.crew_level;
|
||||
if (pRaceDesc->ship_info.ship_flags & PLAYER_CAPTAIN)
|
||||
GLOBAL_SIS (CrewEnlisted)--;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user