Inf and NaN support added to GDScript.

This commit is contained in:
Saracen
2017-02-06 22:44:22 +00:00
parent 3fcd90eeec
commit c38ec226ef
3 changed files with 14 additions and 2 deletions

View File

@@ -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") {