[No GBP]Fixes runtimes when deconstructing floor tiles with RTD (#74767)

## About The Pull Request
Fixes this
![Screenshot
(161)](https://user-images.githubusercontent.com/110812394/232286754-cde879e1-4593-4104-9392-2cc80b845334.png)
Caused by this
![Screenshot
(162)](https://user-images.githubusercontent.com/110812394/232286901-d16b055e-32e0-4ed9-9caf-35bb229ae62e.png)

Since the RTD deconstructs i.e. QDEL the floor tile, the animation
effect tried to add a timer to QDEL itself on the deleted floor tile
causing the runtime.

## Changelog
🆑
fix: RTD animation effect adding a timer on deleted floor tiles.
/🆑

---------

Co-authored-by: tattle <66640614+dragomagol@users.noreply.github.com>
This commit is contained in:
SyncIt21
2023-04-17 06:12:53 +00:00
committed by GitHub
co-authored by tattle
parent 9ac4e101ba
commit bddfeacc64
+2 -2
View File
@@ -328,7 +328,7 @@
return SECONDARY_ATTACK_CANCEL_ATTACK_CHAIN
var/delay = DECONSTRUCTION_TIME(cost)
var/obj/effect/constructing_effect/rcd_effect = new(floor, delay, RCD_FLOORWALL)
var/obj/effect/constructing_effect/rcd_effect = new(floor, delay, RCD_DECONSTRUCT)
//resource sanity check before & after delay along with beam effects
if(!checkResource(cost * 0.7, user)) //no ballon alert for checkResource as it already spans an alert to chat
@@ -359,7 +359,7 @@
qdel(decal)
if(floor.baseturf_at_depth(1) == /turf/baseturf_bottom) //for turfs whose base is open space we put regular plating in its place else everyone dies
floor.ChangeTurf(/turf/open/floor/plating, flags = CHANGETURF_INHERIT_AIR)
else // for every other turf we scarp away exposing base turf underneath
else //for every other turf we scrape away exposing base turf underneath
floor.ScrapeAway(flags = CHANGETURF_INHERIT_AIR)
rcd_effect.end_animation()