From f5b5c7c84f9707961f943134bb7f439f77674670 Mon Sep 17 00:00:00 2001 From: scoopscoop Date: Wed, 13 Aug 2014 19:30:35 +0300 Subject: [PATCH] Clamp function fixed --- code/modules/research/rdconsole.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/research/rdconsole.dm b/code/modules/research/rdconsole.dm index 90ea97309ed..859d5a20481 100644 --- a/code/modules/research/rdconsole.dm +++ b/code/modules/research/rdconsole.dm @@ -345,7 +345,7 @@ won't update every console in existence) but it's more of a hassle to do. Also, if(being_built) var/power = 2000 var/amount=text2num(href_list["amount"]) - amount = max(10, min(1, amount)) + amount = max(1, min(10, amount)) for(var/M in being_built.materials) power += round(being_built.materials[M] * amount / 5) power = max(2000, power)