From c07dfe53725f2794980112d06abfcd1bd3e6bdf5 Mon Sep 17 00:00:00 2001 From: Matt Date: Sat, 20 Feb 2016 06:33:45 -0500 Subject: [PATCH] Unlimited Welder Fix Fixes a bug where welders are infinite use. With this, the Welder will not turn on unless it has at least 1u of welder fuel. Previously, it worked on 'not zero', which allowed it to weld endlessly with fractions of 1u inside (as it was not Zero, but could not deduct 1 from it when used). --- code/game/objects/items/weapons/tools.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/game/objects/items/weapons/tools.dm b/code/game/objects/items/weapons/tools.dm index 0ec2e09497..0a5b1ec686 100644 --- a/code/game/objects/items/weapons/tools.dm +++ b/code/game/objects/items/weapons/tools.dm @@ -216,7 +216,7 @@ if(prob(5)) remove_fuel(1) - if(get_fuel() == 0) + if(get_fuel() < 1) setWelding(0) //I'm not sure what this does. I assume it has to do with starting fires...