diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2017-11-12 21:11:39 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-12 21:11:39 +0100 |
commit | 51ffd452026236431eb8eced345ed36d053c247f (patch) | |
tree | c07a50b94ec0454451c96d3752755b78d770d5d5 /modules/gdscript/gd_script.cpp | |
parent | e9392dd876181c58ebdc309be84cbf397784e87b (diff) | |
parent | 91ca725f9b5a4a77ca70024e3bb73b7c7821a530 (diff) |
Merge pull request #12627 from Goutte/feat-support-tau
Add support for TAU constant.
Diffstat (limited to 'modules/gdscript/gd_script.cpp')
-rw-r--r-- | modules/gdscript/gd_script.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/gdscript/gd_script.cpp b/modules/gdscript/gd_script.cpp index 3f3818ffb9..e5016c59bd 100644 --- a/modules/gdscript/gd_script.cpp +++ b/modules/gdscript/gd_script.cpp @@ -1324,6 +1324,7 @@ void GDScriptLanguage::init() { } _add_global(StaticCString::create("PI"), Math_PI); + _add_global(StaticCString::create("TAU"), Math_TAU); _add_global(StaticCString::create("INF"), Math_INF); _add_global(StaticCString::create("NAN"), Math_NAN); @@ -1700,6 +1701,7 @@ void GDScriptLanguage::get_reserved_words(List<String> *p_words) const { "bool", "null", "PI", + "TAU", "INF", "NAN", "self", |