Adds null check to world status map check (#40305)

* Adds null check to world status map check

* Fix stat
This commit is contained in:
Jordan Brown
2018-09-17 20:20:58 -04:00
committed by Emmett Gaines
parent fe063e7b22
commit e06f32b14d
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -157,7 +157,7 @@
.["admins"] = presentmins.len + afkmins.len //equivalent to the info gotten from adminwho
.["gamestate"] = SSticker.current_state
.["map_name"] = SSmapping.config.map_name
.["map_name"] = SSmapping.config?.map_name || "Loading..."
if(key_valid)
.["active_players"] = get_active_player_count()
+1 -1
View File
@@ -514,7 +514,7 @@
if(statpanel("Status"))
if (client)
stat(null, "Ping: [round(client.lastping, 1)]ms (Average: [round(client.avgping, 1)]ms)")
stat(null, "Map: [SSmapping.config.map_name]")
stat(null, "Map: [SSmapping.config?.map_name || "Loading..."]")
var/datum/map_config/cached = SSmapping.next_map_config
if(cached)
stat(null, "Next Map: [cached.map_name]")