player_spawnCheck no longer needs to be spawned.

Since removing the unnecessary sleeps from zombie_generate, player_spawnCheck can now be called instead of spawned.
This commit is contained in:
worldwidesorrow
2020-01-09 16:37:09 -06:00
committed by GitHub
parent 7ec0ddd412
commit fe861deec2

View File

@@ -1,10 +1,7 @@
#include "scheduler.hpp"
sched_spawnCheck_init = { []spawn{} };
sched_spawnCheck = {
HIDE_FSM_VARS
if (scriptDone _this) then {
_this = [] spawn player_spawnCheck; // calls buildingSpawnZombies --> zombie_generate which uses sleep, can't put in scheduler
};
_this;
};
call player_spawnCheck;
objNull
};