Fix the runtime on server boot caused by uninitialized using_map

This commit is contained in:
Leshana
2017-04-09 16:11:12 -04:00
parent bbfaa41f2a
commit a23be7759b

View File

@@ -89,10 +89,11 @@
/datum/lore/organization/tsc/nanotrasen/New()
..()
// Get rid of the current map from the list, so ships flying in don't say they're coming to the current map.
var/string_to_test = "[using_map.station_name] in [using_map.starsys_name]"
if(string_to_test in destination_names)
destination_names.Remove(string_to_test)
spawn(1) // BYOND shenanigans means using_map is not initialized yet. Wait a tick.
// Get rid of the current map from the list, so ships flying in don't say they're coming to the current map.
var/string_to_test = "[using_map.station_name] in [using_map.starsys_name]"
if(string_to_test in destination_names)
destination_names.Remove(string_to_test)