Skip to content

Commit

Permalink
Update tgui_input_real_number to use the SHORT_REAL_LIMIT define.
Browse files Browse the repository at this point in the history
  • Loading branch information
Drulikar committed Jul 24, 2023
1 parent 75cab10 commit 87b7fc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/modules/tgui/tgui_number_input.dm
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
qdel(number_input)

///A clone of tgui_input_number that defaults to accepting negative inputs too.
/proc/tgui_input_real_number(mob/user, message, title = "Number Input", default = 0, max_value = 16777216, min_value = -16777216, timeout = 0, integer_only = FALSE)
/proc/tgui_input_real_number(mob/user, message, title = "Number Input", default = 0, max_value = SHORT_REAL_LIMIT, min_value = -SHORT_REAL_LIMIT, timeout = 0, integer_only = FALSE)
return tgui_input_number(user, message, title, default, max_value, min_value, timeout, integer_only)
/**
* Creates an asynchronous TGUI number input window with an associated callback.
Expand Down

0 comments on commit 87b7fc8

Please sign in to comment.