From 4c0d9485b52931a4f39ea50f5fc331791d2c87ca Mon Sep 17 00:00:00 2001 From: Leland Kemble <70413276+lelandkemble@users.noreply.github.com> Date: Sun, 22 Feb 2026 09:47:12 -0500 Subject: [PATCH] Fixes infinite machine guns (#95220) ## About The Pull Request Fixes infinite `do_after()`s making infinite machine guns by making the `do_after()`'s `target` the relevant machine gun. ## Why It's Good For The Game fixes #95218 ## Changelog :cl: fix: Fixed infinite machine guns /:cl: --- code/game/objects/structures/deployable_turret.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/game/objects/structures/deployable_turret.dm b/code/game/objects/structures/deployable_turret.dm index 66297544006..311f3b24619 100644 --- a/code/game/objects/structures/deployable_turret.dm +++ b/code/game/objects/structures/deployable_turret.dm @@ -57,7 +57,7 @@ return ITEM_INTERACT_SKIP_TO_ATTACK used_wrench.play_tool_sound(user) user.balloon_alert(user, "undeploying...") - if(!do_after(user, undeploy_time)) + if(!do_after(user, undeploy_time, src)) return ITEM_INTERACT_BLOCKING var/obj/undeployed_object = new spawned_on_undeploy() //Keeps the health the same even if you redeploy the gun