Now will not call CarrierMap:new() when game.settings.pretense_controllable_carrier is disabled.

This commit is contained in:
MetalStormGhost 2024-04-06 20:27:39 +03:00
parent 64b1410de8
commit 0a7b885626

View File

@ -1509,7 +1509,9 @@ class PretenseLuaGenerator(LuaGenerator):
)
lua_string_zones = ""
lua_string_carriers = self.generate_pretense_carrier_zones()
lua_string_carriers = ""
if self.game.settings.pretense_controllable_carrier:
lua_string_carriers += self.generate_pretense_carrier_zones()
for cp in self.game.theater.controlpoints:
cp_name_trimmed = "".join([i for i in cp.name.lower() if i.isalpha()])