Skip to content

Commit

Permalink
fixes crash?
Browse files Browse the repository at this point in the history
  • Loading branch information
FalloutFalcon committed Dec 29, 2024
1 parent 47d9a2b commit 808e3c4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions code/game/objects/effects/decals/decal.dm
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,14 @@
/obj/effect/turf_decal/Destroy(force)
SHOULD_CALL_PARENT(FALSE)

// 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, FALSE, color, null, null, alpha, FALSE)
if(detail_overlay)
T.RemoveElement(/datum/element/decal, icon, detail_overlay, dir, FALSE, detail_color, null, null, alpha, appearance_flags)

// 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.
Expand Down

0 comments on commit 808e3c4

Please sign in to comment.