From f562b217ef64293d267490aef2b45565bf1e2f9e Mon Sep 17 00:00:00 2001 From: "johnsonmt88@gmail.com" Date: Fri, 20 Jul 2012 04:54:47 +0000 Subject: [PATCH] Fix for light replacers gobbling up lights put into it when it is full. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4126 316c924e-a436-60f5-8080-3fe189b3f50e --- code/game/objects/devices/lightreplacer.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/game/objects/devices/lightreplacer.dm b/code/game/objects/devices/lightreplacer.dm index fffc38c9d4f..b3c9ba5d343 100644 --- a/code/game/objects/devices/lightreplacer.dm +++ b/code/game/objects/devices/lightreplacer.dm @@ -74,7 +74,7 @@ if(istype(W, /obj/item/stack/sheet/glass)) var/obj/item/stack/sheet/glass/G = W - if(G.amount - decrement >= 0 && uses <= max_uses) + if(G.amount - decrement >= 0 && uses < max_uses) G.amount -= decrement AddUses(increment) user << "You insert a piece of glass into the [src.name]. You have [uses] lights remaining." @@ -83,7 +83,7 @@ if(istype(W, /obj/item/weapon/light)) var/obj/item/weapon/light/L = W if(L.status == 0) // LIGHT OKAY - if(uses <= max_uses) + if(uses < max_uses) AddUses(1) user << "You insert the [L.name] into the [src.name]. You have [uses] lights remaining." user.drop_item()