aboutsummaryrefslogtreecommitdiffstats
path: root/src/server/Utils.hx
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/Utils.hx')
-rw-r--r--src/server/Utils.hx4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/server/Utils.hx b/src/server/Utils.hx
index 9aa0d66..a2f4382 100644
--- a/src/server/Utils.hx
+++ b/src/server/Utils.hx
@@ -69,6 +69,10 @@ class Utils {
return "127.0.0.1";
}
+ public static function isOutOfRange(value:Float, min:Float, max:Float):Bool {
+ return value == null || Math.isNaN(value) || value < min || value > max;
+ }
+
public static function sortedPush(ids:Array<Int>, id:Int):Void {
for (i => n in ids) {
if (id < n) {
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage