mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-24 05:30:05 +01:00
## About The Pull Request Absolute minimum is only supposed to load a single empty room, the interlink is unnecessary and increases the load time ## Why It's Good For The Game Faster load times ## Proof Of Testing Yeah ## Changelog 🆑 code: ABSOLUTE_MINIMUM compile option no longer loads the interlink /🆑
19 lines
871 B
Plaintext
19 lines
871 B
Plaintext
/// A file to help with making it possible to load the Interlink *modularly* instead of leaving it stuck in Z-2 where station should be and spawning all manner of bad behaviour.
|
|
#define INIT_ANNOUNCE(X) to_chat(world, span_boldannounce("[X]")); log_world(X)
|
|
|
|
/datum/controller/subsystem/mapping/loadWorld()
|
|
. = ..()
|
|
#ifndef ABSOLUTE_MINIMUM
|
|
var/list/FailedZsRat = list()
|
|
LoadGroup(FailedZsRat, "The Interlink", "map_files/generic", "CentCom_skyrat_z2.dmm", default_traits = ZTRAITS_CENTCOM)
|
|
if(LAZYLEN(FailedZsRat)) //but seriously, unless the server's filesystem is messed up this will never happen
|
|
var/msg = "RED ALERT! The following map files failed to load: [FailedZsRat[1]]"
|
|
if(FailedZsRat.len > 1)
|
|
for(var/I in 2 to FailedZsRat.len)
|
|
msg += ", [FailedZsRat[I]]"
|
|
msg += ". Yell at your server host!"
|
|
INIT_ANNOUNCE(msg)
|
|
#endif
|
|
|
|
#undef INIT_ANNOUNCE
|