|
|
|
@ -85,7 +85,7 @@ endproperty |
|
|
|
|
|
|
|
|
|
bool Function VanillaLoopBreak() |
|
|
|
|
|
|
|
|
|
if (bLooping || iCurrentCritterCount>0) |
|
|
|
|
if (bLooping || iCurrentCritterCount != 0) |
|
|
|
|
; breaking OnCellAttach runaway loop in baked vanilla functions |
|
|
|
|
bLooping = false |
|
|
|
|
; breaking SpawnInitialCritterBatch runaway loop in baked vanilla and uskp functions |
|
|
|
@ -171,7 +171,7 @@ Function SpawnABatchOfCritters() |
|
|
|
|
spawnAttempts = 1 |
|
|
|
|
endif |
|
|
|
|
|
|
|
|
|
while (spawnAttempts) |
|
|
|
|
while (spawnAttempts>0) |
|
|
|
|
if (SpawnCritterAtRef(self)) |
|
|
|
|
iSpawnedCritterCount += 1 |
|
|
|
|
endif |
|
|
|
@ -179,7 +179,7 @@ Function SpawnABatchOfCritters() |
|
|
|
|
endWhile |
|
|
|
|
|
|
|
|
|
isSpawning = false |
|
|
|
|
if (iMaxCritterCount - iSpawnedCritterCount + iDeadCritterCount) |
|
|
|
|
if (iMaxCritterCount - iSpawnedCritterCount + iDeadCritterCount>0) |
|
|
|
|
;we couldn't spawn enough critters, or the player is currently killing them : try a bit later |
|
|
|
|
QueueAdditionalSpawns() |
|
|
|
|
endIf |
|
|
|
|