mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-24 09:02:27 +00:00
Remove holder access (#1906)
changes: Mob holders no longer grant that mob's access. Fix bug where wrong task was killed on invalid head in scheduler. Fixes #1785
This commit is contained in:
@@ -15,9 +15,9 @@
|
||||
/datum/controller/process/scheduler/doWork()
|
||||
while (head && !PSCHED_CHECK_TICK)
|
||||
if (head.destroyed)
|
||||
head.kill()
|
||||
head = head.next
|
||||
tasks -= head
|
||||
head.kill()
|
||||
continue
|
||||
if (head.trigger_time >= world.time)
|
||||
return // Nothing after this will be ready to fire.
|
||||
|
||||
Reference in New Issue
Block a user