From 5e938f000136c076f9f35b8332dc7c022687a983 Mon Sep 17 00:00:00 2001 From: Saracen Date: Mon, 6 Feb 2017 22:44:22 +0000 Subject: Inf and NaN support added to GDScript. --- modules/gdscript/gd_script.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'modules/gdscript/gd_script.cpp') diff --git a/modules/gdscript/gd_script.cpp b/modules/gdscript/gd_script.cpp index d4646aa36d..4e72bc39a4 100644 --- a/modules/gdscript/gd_script.cpp +++ b/modules/gdscript/gd_script.cpp @@ -1517,6 +1517,8 @@ void GDScriptLanguage::init() { } _add_global(StaticCString::create("PI"),Math_PI); + _add_global(StaticCString::create("INF"),Math_INF); + _add_global(StaticCString::create("NAN"),Math_NAN); //populate native classes @@ -1909,6 +1911,8 @@ void GDScriptLanguage::get_reserved_words(List *p_words) const { "bool", "null", "PI", + "INF", + "NAN", "self", "true", // functions -- cgit v1.2.3