Skip to content

Commit b68d174

Browse files
Fixes window grille spawners borking if spawned midround (#37290)
* Fixes window grille spawners borking midround * better * so it's not twice
1 parent ea84c04 commit b68d174

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

code/game/objects/effects/spawners/grille_window_spawner.dm

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
var/window_path = /obj/structure/window
55
var/full_path
66

7+
/obj/structure/grille/window_spawner/spawned_by_map_element(datum/map_element/ME)
8+
. = ..()
9+
if(ticker?.current_state == GAME_STATE_PLAYING)
10+
initialize()
11+
712
/obj/structure/grille/window_spawner/initialize()
813
icon = 'icons/obj/structures.dmi'
914
icon_state = "grille0"

0 commit comments

Comments
 (0)