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:
Lohikar
2017-03-12 05:18:09 -05:00
committed by skull132
parent a337279c86
commit 7cc68feeb4
3 changed files with 6 additions and 15 deletions

View File

@@ -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.