You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
Inf and NaN support added to GDScript.
This commit is contained in:
@@ -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<String> *p_words) const {
|
||||
"bool",
|
||||
"null",
|
||||
"PI",
|
||||
"INF",
|
||||
"NAN",
|
||||
"self",
|
||||
"true",
|
||||
// functions
|
||||
|
||||
Reference in New Issue
Block a user