Skip to content

Commit 746ff67

Browse files
committed
Fix unit tests
1 parent 3f7514c commit 746ff67

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

code/WorkInProgress/salvager/salvager_magpie.dm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
var/datum/magpie_manager/magpie_man = new
33
/datum/magpie_manager
44
var/obj/npc/trader/salvager/magpie
5-
#if !defined(LIVE_SERVER)
5+
#if !defined(LIVE_SERVER) && !defined(UNIT_TESTS)
66
var/datum/mapPrefab/allocated/salvager_local/local_prefab = new /datum/mapPrefab/allocated/salvager_local
77
#endif
88

99
proc/setup()
1010
src.magpie = locate("M4GP13")
1111

12-
#if !defined(LIVE_SERVER) // don't load the map prefab on live, it's only used for testing
12+
#if !defined(LIVE_SERVER) && !defined(UNIT_TESTS) // don't load the map prefab on live, it's only used for testing
1313
if( !magpie_man.magpie )
1414
src.local_prefab = get_singleton(/datum/mapPrefab/allocated/salvager_local).load()
1515
src.magpie = locate("M4GP13")

0 commit comments

Comments
 (0)