Skip to content

Commit

Permalink
fix(welding): fixes inability to weld APCs
Browse files Browse the repository at this point in the history
  • Loading branch information
Filatelele authored Mar 18, 2024
1 parent f7ca53f commit 442607a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions code/game/machinery/camera/camera.dm
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,9 @@
if(WT.use_tool(src, user, delay = 10 SECONDS, amount = 5))
return FALSE

if(QDELETED(src))
return FALSE

return TRUE

/obj/machinery/camera/interact(mob/living/user as mob)
Expand Down
5 changes: 3 additions & 2 deletions code/modules/power/apc.dm
Original file line number Diff line number Diff line change
Expand Up @@ -580,8 +580,9 @@
"<span class='warning'>[src] has been cut from the wall by [user.name] with the weldingtool.</span>",\
"<span class='notice'>You cut the APC frame from the wall.</span>",\
"You hear welding.")
qdel(src)
return

qdel(src)
return
else if (istype(W, /obj/item/frame/apc) && opened && emagged)
emagged = 0
if (opened==2)
Expand Down

0 comments on commit 442607a

Please sign in to comment.