mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-29 08:08:49 +01:00
Replaced last occurences of gc_destroyed by qdeleted().
This commit is contained in:
@@ -263,7 +263,7 @@
|
||||
playsound(loc, 'sound/items/Ratchet.ogg', 50, 1)
|
||||
user << "<span class='warning'>You start [anchored ? "unwrenching" : "wrenching"] [src]...</span>"
|
||||
if(do_after(user, 20/O.toolspeed, target = src))
|
||||
if(gc_destroyed)
|
||||
if(qdeleted(src))
|
||||
return
|
||||
user << "<span class='notice'>You [anchored ? "unwrench" : "wrench"] [src].</span>"
|
||||
anchored = !anchored
|
||||
@@ -305,7 +305,7 @@
|
||||
user.visible_message("<span class='warning'>[user] starts putting [target] onto the photocopier!</span>", "<span class='notice'>You start putting [target] onto the photocopier...</span>")
|
||||
|
||||
if(do_after(user, 20, target = src))
|
||||
if(!target || target.gc_destroyed || gc_destroyed || !Adjacent(target)) //check if the photocopier/target still exists.
|
||||
if(!target || qdeleted(target) || qdeleted(src) || !Adjacent(target)) //check if the photocopier/target still exists.
|
||||
return
|
||||
|
||||
if(target == user)
|
||||
@@ -343,7 +343,7 @@
|
||||
return 1
|
||||
|
||||
/obj/machinery/photocopier/proc/copier_blocked()
|
||||
if(gc_destroyed)
|
||||
if(qdeleted(src))
|
||||
return
|
||||
if(loc.density)
|
||||
return 1
|
||||
|
||||
Reference in New Issue
Block a user