From 70ee588574700aeffa5972d40acf290dcc557772 Mon Sep 17 00:00:00 2001 From: sasha80 Date: Wed, 1 Oct 2025 12:47:16 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D1=80=D0=BE=D0=B8=D0=B7=D0=B2=D0=BE?= =?UTF-8?q?=D0=B4=D0=B8=D1=82=D0=B5=D0=BB=D1=8C=D0=BD=D0=BE=D1=81=D1=82?= =?UTF-8?q?=D1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/tools.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/tools.gd b/scripts/tools.gd index c11dea6..de9232c 100644 --- a/scripts/tools.gd +++ b/scripts/tools.gd @@ -9,7 +9,7 @@ func round_to(v: float, a: float) -> float: return snappedf(v, -a if v < 0 else ## Возвращает [b]true[/b], если [param val] число, [b]false[/b] - если иначе. -func type_is_num(val) -> bool: return (typeof(val) == TYPE_INT) or (typeof(val) == TYPE_FLOAT) +func type_is_num(val) -> bool: return (val is int) or (val is float) ## Возвращает значение в радианах для угла в градусах [param val].