Fixes a lack of feedback when entering too many points for the gulag. (#37339)

This commit is contained in:
Dax Dupont
2018-04-23 02:43:41 +02:00
committed by CitadelStationBot
parent e022564fca
commit af48fe9dcf
@@ -106,6 +106,8 @@
return
if(!new_goal)
new_goal = default_goal
if (new_goal > 1000)
to_chat(usr, "The entered amount of points is too large. Points have instead been set to the maximum allowed amount.")
id.goal = CLAMP(new_goal, 0, 1000) //maximum 1000 points
if("toggle_open")
if(teleporter.locked)