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
This commit is contained in:
johnsonmt88@gmail.com
2012-07-20 04:54:47 +00:00
parent 25bf3ac5ca
commit f562b217ef
+2 -2
View File
@@ -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()