mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-25 22:12:58 +01:00
Various Incomplete Destroy Fixes (#22788)
I've had extended logging for Incomplete Destroys for about 2 weeks now, so there's the promised PR that fixes each and every single poisoned destroy that was recorded in the past 2 weeks by the sentry logs.
This commit is contained in:
@@ -34,6 +34,15 @@
|
||||
else
|
||||
to_chat(user, SPAN_NOTICE("Select a type to construct."))
|
||||
else if(parameters["right"])
|
||||
if (isturf(A))
|
||||
// Delete exemption for Turfs, which under no circumstances are allowed to be qdel'ed directly.
|
||||
// "Deleting" a turf instead attempts to change it to its base turf,
|
||||
// which in most cases will either Plating, or Open Space. Open Space will simply return early instead.
|
||||
var/turf/T = A
|
||||
Log("Replaced turf - [log_info_line(T)]")
|
||||
T.ChangeTurf(T.baseturf)
|
||||
return
|
||||
|
||||
Log("Deleted - [log_info_line(A)]")
|
||||
qdel(A)
|
||||
else if((parameters["left"] && parameters["ctrl"]) || parameters["middle"])
|
||||
|
||||
Reference in New Issue
Block a user