Fix of atmos input exploit

What on tin
This commit is contained in:
Razharas
2014-11-16 05:18:22 +03:00
parent 24c0c3d941
commit 2a20c6bcf3
6 changed files with 10 additions and 10 deletions

View File

@@ -143,8 +143,7 @@ Passive gate is similar to the regular pump except:
if(href_list["power"])
on = !on
if(href_list["set_press"])
var/new_pressure = input(usr,"Enter new output pressure (0-4500kPa)","Pressure control",src.target_pressure) as num
src.target_pressure = max(0, min(4500, new_pressure))
target_pressure = max(0, min(4500, safe_input("Pressure control", "Enter new output pressure (0-4500kPa)", target_pressure)))
usr.set_machine(src)
src.update_icon()
src.updateUsrDialog()