From 9539a02fb6684151ff00a1d6d3b025ca907cfaa1 Mon Sep 17 00:00:00 2001 From: Cameron Lennox Date: Sun, 9 Nov 2025 03:05:10 -0500 Subject: [PATCH] Fixes some do_after bugs (#18753) --- code/ATMOSPHERICS/components/binary_devices/volume_pump.dm | 2 +- code/ATMOSPHERICS/components/unary/vent_scrubber.dm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/code/ATMOSPHERICS/components/binary_devices/volume_pump.dm b/code/ATMOSPHERICS/components/binary_devices/volume_pump.dm index 85f58836dd..4945a83cd9 100644 --- a/code/ATMOSPHERICS/components/binary_devices/volume_pump.dm +++ b/code/ATMOSPHERICS/components/binary_devices/volume_pump.dm @@ -287,7 +287,7 @@ Thus, the two variables affect pump operation are set in New(): return TRUE playsound(src, W.usesound, 50, 1) to_chat(user, span_notice("You begin to unfasten \the [src]...")) - if (do_after(user, 40 * W.toolspeed)) + if(do_after(user, 40 * W.toolspeed, src)) user.visible_message( \ span_infoplain(span_bold("\The [user]") + " unfastens \the [src]."), \ span_notice("You have unfastened \the [src]."), \ diff --git a/code/ATMOSPHERICS/components/unary/vent_scrubber.dm b/code/ATMOSPHERICS/components/unary/vent_scrubber.dm index 286576890e..d910f716ee 100644 --- a/code/ATMOSPHERICS/components/unary/vent_scrubber.dm +++ b/code/ATMOSPHERICS/components/unary/vent_scrubber.dm @@ -276,7 +276,7 @@ if (WT.remove_fuel(0,user)) to_chat(user, span_notice("Now welding the vent.")) - if(do_after(user, 20 * WT.toolspeed)) + if(do_after(user, 20 * WT.toolspeed, src)) if(!src || !WT.isOn()) return playsound(src, WT.usesound, 50, 1) if(!welded)