Adds logging to failed gamemode startups (#38735)

* Adds logging to failed gamemode startups

* ]

* While i'm here
This commit is contained in:
AnturK
2018-06-27 16:12:35 +02:00
committed by Jordan Brown
parent b17168691a
commit bcc58d3ab9
10 changed files with 23 additions and 8 deletions
+2 -2
View File
@@ -244,8 +244,8 @@ SUBSYSTEM_DEF(ticker)
if(!GLOB.Debug2)
if(!can_continue)
qdel(mode)
mode = null
log_game("[mode.name] failed pre_setup, cause: [mode.setup_error]")
QDEL_NULL(mode)
to_chat(world, "<B>Error setting up [GLOB.master_mode].</B> Reverting to pre-game lobby.")
SSjob.ResetOccupations()
return 0