Skip to content

Commit 6f39985

Browse files
authored
Make wind not unpredictably break CI due to bad init. (#28149)
* Make wind not unpredictably break CI due to bad init. * Is THIS your card?
1 parent 6eeea2b commit 6f39985

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

code/modules/atmospherics/environmental/LINDA_turf_tile.dm

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,14 @@
240240
layer = MASSIVE_OBJ_LAYER
241241
blend_mode = BLEND_OVERLAY
242242

243+
// See comment on attempt_init.
244+
initialized = TRUE
245+
246+
// Wind has nothing it needs to initialize, and it's not surprising if it gets both created and qdeleted during an init freeze. Prevent that from causing an init sanity error.
247+
/obj/effect/wind/attempt_init(...)
248+
initialized = TRUE
249+
return
250+
243251
#undef INDEX_NORTH
244252
#undef INDEX_EAST
245253
#undef INDEX_SOUTH

0 commit comments

Comments
 (0)