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:
@@ -125,12 +125,12 @@ DeltaSupportCrew (SIZE crew_delta)
|
|||||||
if (StarShipPtr->ShipInfo.crew_level == 0)
|
if (StarShipPtr->ShipInfo.crew_level == 0)
|
||||||
StarShipPtr->ShipInfo.crew_level = 1;
|
StarShipPtr->ShipInfo.crew_level = 1;
|
||||||
else if (StarShipPtr->ShipInfo.crew_level >
|
else if (StarShipPtr->ShipInfo.crew_level >
|
||||||
TemplatePtr->RaceDescPtr->ship_info.crew_level)
|
TemplatePtr->RaceDescPtr->ship_info.crew_level &&
|
||||||
StarShipPtr->ShipInfo.crew_level =
|
crew_delta > 0)
|
||||||
TemplatePtr->RaceDescPtr->ship_info.crew_level;
|
StarShipPtr->ShipInfo.crew_level -= crew_delta;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (StarShipPtr->ShipInfo.crew_level ==
|
if (StarShipPtr->ShipInfo.crew_level >=
|
||||||
TemplatePtr->RaceDescPtr->ship_info.crew_level)
|
TemplatePtr->RaceDescPtr->ship_info.crew_level)
|
||||||
wsprintf (buf, "%u", StarShipPtr->ShipInfo.crew_level);
|
wsprintf (buf, "%u", StarShipPtr->ShipInfo.crew_level);
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user