Inf and NaN support added to GDScript.

This commit is contained in:
Saracen committed 2017-02-28 21:52:33 +00:00
1 parent 0f8c6dd382
commit 5e938f0001
11 files changed
+53 -4

No files matched your search

@@ -558,6 +558,12 @@ Error VisualScriptExpression::_get_token(Token& r_token) {
} else if (id=="PI") {
r_token.type=TK_CONSTANT;
r_token.value=Math_PI;
} else if (id == "INF") {
r_token.type = TK_CONSTANT;
r_token.value = Math_INF;
} else if (id == "NAN") {
r_token.type = TK_CONSTANT;
r_token.value = Math_NAN;
} else if (id=="not") {
r_token.type=TK_OP_NOT;
} else if (id=="or") {