Merge pull request #10505 from VOREStation/Arokha/miscfix

Some misc runtime fixes
This commit is contained in:
Aronai Sieyes
2021-05-30 23:57:15 -04:00
committed by Chompstation Bot
parent 839d303ccc
commit e89052c292
5 changed files with 11 additions and 9 deletions

View File

@@ -25,13 +25,10 @@ SUBSYSTEM_DEF(mobs)
/datum/controller/subsystem/mobs/fire(resumed = 0)
if (!resumed)
src.currentrun = mob_list.Copy()
process_z.Cut()
process_z.len = GLOB.living_players_by_zlevel.len
slept_mobs = 0
var/level = 1
while(process_z.len < GLOB.living_players_by_zlevel.len)
process_z.len++
for(var/level in 1 to process_z.len)
process_z[level] = GLOB.living_players_by_zlevel[level].len
level++
//cache for sanic speed (lists are references anyways)
var/list/currentrun = src.currentrun