Prevent Syreen crew above 12 getting thrown out the airlock in roster screen

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1138 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
avolkov
2003-08-28 23:17:26 +00:00
parent 8da2644287
commit 4e779b3e97
+4 -4
View File
@@ -125,12 +125,12 @@ DeltaSupportCrew (SIZE crew_delta)
if (StarShipPtr->ShipInfo.crew_level == 0)
StarShipPtr->ShipInfo.crew_level = 1;
else if (StarShipPtr->ShipInfo.crew_level >
TemplatePtr->RaceDescPtr->ship_info.crew_level)
StarShipPtr->ShipInfo.crew_level =
TemplatePtr->RaceDescPtr->ship_info.crew_level;
TemplatePtr->RaceDescPtr->ship_info.crew_level &&
crew_delta > 0)
StarShipPtr->ShipInfo.crew_level -= crew_delta;
else
{
if (StarShipPtr->ShipInfo.crew_level ==
if (StarShipPtr->ShipInfo.crew_level >=
TemplatePtr->RaceDescPtr->ship_info.crew_level)
wsprintf (buf, "%u", StarShipPtr->ShipInfo.crew_level);
else