Fixes freezer UI bug

This commit is contained in:
mwerezak
2014-08-04 14:48:47 -04:00
parent a772d9094c
commit c9f16ec665
2 changed files with 4 additions and 4 deletions

View File

@@ -101,9 +101,9 @@
if(href_list["temp"])
var/amount = text2num(href_list["temp"])
if(amount > 0)
src.set_temperature = min(0, src.set_temperature+amount)
src.set_temperature = min(src.set_temperature+amount, 1000)
else
src.set_temperature = max(10000, src.set_temperature+amount) //no need for a maximum, really
src.set_temperature = max(src.set_temperature+amount, 0)
src.add_fingerprint(usr)
return 1