The del world issue is caused by sleep_offline

Just do an infinite loop and ensure `sleep_offline` is off. It can't keep getting away with this.

Bump DMAPI version
This commit is contained in:
Jordan Dominion
2023-10-31 23:16:16 -04:00
parent 7bb565d0da
commit 3901512693
6 changed files with 19 additions and 23 deletions
+6 -2
View File
@@ -12,8 +12,12 @@ TGS_DEFINE_AND_SET_GLOBAL(tgs, null)
src.version = version
/datum/tgs_api/proc/TerminateWorld()
del(world)
sleep(1) // https://www.byond.com/forum/post/2894866
while(TRUE)
TGS_DEBUG_LOG("About to terminate world. Tick: [world.time], sleep_offline: [world.sleep_offline]")
del(world)
world.sleep_offline = FALSE // https://www.byond.com/forum/post/2894866
sleep(1)
TGS_DEBUG_LOG("BYOND DIDN'T TERMINATE THE WORLD!!! TICK IS: [world.time], sleep_offline: [world.sleep_offline]")
/datum/tgs_api/latest
parent_type = /datum/tgs_api/v5