Skip to content

Commit

Permalink
https://github.com/tgstation/tgstation/pull/71706
Browse files Browse the repository at this point in the history
  • Loading branch information
FalloutFalcon committed Oct 7, 2024
1 parent 3571925 commit b01244e
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions code/game/objects/effects/decals/decal.dm
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,17 @@
T.AddElement(/datum/element/decal, icon, detail_overlay, dir, FALSE, detail_color, null, null, alpha, appearance_flags)
return INITIALIZE_HINT_QDEL


/obj/effect/turf_decal/Destroy(force)
SHOULD_CALL_PARENT(FALSE)
moveToNullspace()
#ifdef UNIT_TESTS
// If we don't do this, turf decals will end up stacking up on a tile, and break the overlay limit
// I hate it too bestie
if(GLOB.running_create_and_destroy)
var/turf/T = loc
T.RemoveElement(/datum/element/decal, icon, icon_state, dir, null, null, alpha, color, null, FALSE, null)
T.RemoveElement(/datum/element/decal, icon, icon_state, dir, null, layer, alpha, color, null, FALSE, null)
#endif
// Intentionally used over moveToNullspace(), which calls doMove(), which fires
// off an enormous amount of procs, signals, etc, that this temporary effect object
// never needs or affects.
loc = null
return QDEL_HINT_QUEUE

0 comments on commit b01244e

Please sign in to comment.