oops, don't want to display fieldgens on the build menu if you dont'

have them
This commit is contained in:
Adam Olsen 2001-08-26 06:17:18 +00:00
parent 6debcdb4ed
commit 68424ae9b7

View file

@ -1131,10 +1131,10 @@ void() Menu_Engineer =
else
st += "\n";
if (self.has_fieldgen < 2 && self.ammo_cells >= BUILD_COST_FIELDGEN)
if (self.has_fieldgen < 2 && self.ammo_cells >= BUILD_COST_FIELDGEN && self.cutf_items & CUTF_FIELDGEN)
st += "\x9a.. Build a Field Generator \n";
#ifdef FIELD_FORCEMODE
else if (self.has_fieldgen == 2)
else if (self.has_fieldgen == 2 && self.cutf_items & CUTF_FIELDGEN)
st += "\x9a.. Force field: " + (GetFieldForcedStatus() ? "\<Closed Mode\> \n" : "\<Intelligent Mode\> \n");
#endif
else