From 2ff5e1aaf8fbd13862378c10eae1aae4dae31b67 Mon Sep 17 00:00:00 2001 From: Cyberboss Date: Mon, 6 Mar 2017 18:01:49 -0500 Subject: [PATCH] Ticking the map dm's will force that map to load --- _maps/deltastation.dm | 1 + _maps/metastation.dm | 1 + _maps/omegastation.dm | 1 + _maps/pubbystation.dm | 1 + _maps/runtimestation.dm | 1 + _maps/tgstation2.dm | 1 + code/controllers/subsystem/mapping.dm | 4 ++++ 7 files changed, 10 insertions(+) diff --git a/_maps/deltastation.dm b/_maps/deltastation.dm index e69de29bb2d..7dfabf7a48e 100644 --- a/_maps/deltastation.dm +++ b/_maps/deltastation.dm @@ -0,0 +1 @@ +#define FORCE_MAP "_maps/deltastation.json" \ No newline at end of file diff --git a/_maps/metastation.dm b/_maps/metastation.dm index e69de29bb2d..3d13caf6d29 100644 --- a/_maps/metastation.dm +++ b/_maps/metastation.dm @@ -0,0 +1 @@ +#define FORCE_MAP "_maps/metastation.json" \ No newline at end of file diff --git a/_maps/omegastation.dm b/_maps/omegastation.dm index e69de29bb2d..ea4a0c155fe 100644 --- a/_maps/omegastation.dm +++ b/_maps/omegastation.dm @@ -0,0 +1 @@ +#define FORCE_MAP "_maps/omegastation.json" \ No newline at end of file diff --git a/_maps/pubbystation.dm b/_maps/pubbystation.dm index e69de29bb2d..867d0ddb17d 100644 --- a/_maps/pubbystation.dm +++ b/_maps/pubbystation.dm @@ -0,0 +1 @@ +#define FORCE_MAP "_maps/pubbystation.json" \ No newline at end of file diff --git a/_maps/runtimestation.dm b/_maps/runtimestation.dm index e69de29bb2d..612644e5f0b 100644 --- a/_maps/runtimestation.dm +++ b/_maps/runtimestation.dm @@ -0,0 +1 @@ +#define FORCE_MAP "_maps/runtimestation.json" \ No newline at end of file diff --git a/_maps/tgstation2.dm b/_maps/tgstation2.dm index e69de29bb2d..cbde71caaa7 100644 --- a/_maps/tgstation2.dm +++ b/_maps/tgstation2.dm @@ -0,0 +1 @@ +#define FORCE_MAP "_maps/tgstation2.json" \ No newline at end of file diff --git a/code/controllers/subsystem/mapping.dm b/code/controllers/subsystem/mapping.dm index e042f0b8366..d63330dc373 100644 --- a/code/controllers/subsystem/mapping.dm +++ b/code/controllers/subsystem/mapping.dm @@ -28,7 +28,11 @@ var/datum/subsystem/mapping/SSmapping if(previous_map_config.defaulted) previous_map_config = null if(!config) +#ifdef FORCE_MAP + config = new(FORCE_MAP) +#else config = new +#endif return ..()