A3Antistasi / antistasi-1.x

Antistasi Unofficial Community old version
http://a3antistasi.enjin.com/
39 stars 44 forks source link

hotfix supply group not deleted #341

Closed zalexki closed 6 years ago

zalexki commented 6 years ago

@wurzel0701 AIs spawned with createSupplyGroup never despawn if you can check i think we don't handle properly the markers and the units assigned because distancias3 use markers to spawn or not units. If you can take a look.

wurzel0701 commented 6 years ago

Should be done problem is the script is waiting for (spawner getVariable _marker > 1) but we are setting spawner _marker to nil, check is now included, untested but that should not change much

zalexki commented 6 years ago

@wurzel0701 that was kind of related, see diff for fixed version. It's running on wurm server.

FYI: in this mission, dunno why actually, _marker is set to null instead of false so !(spawner getVariable _marker) return a good wtf thing which is the type of his return value (or maybe his typehint dunno) bool