haxe compatibility fix for haxe version 4.0.5

This commit is contained in:
Hion-V 2022-02-20 19:45:14 +01:00
parent b1412b4eb2
commit 25e14db0ff

View File

@ -51,11 +51,11 @@ class Main{
}
// Look at switch contents
if (_switches.contains("-v")) {
if (_switches.indexOf("-v") > -1) {
Sys.println('version: ${haxe.macro.Compiler.getDefine("version")}');
return;
}
if (_switches.contains("-t")) {
if (_switches.indexOf("-t") > -1) {
SWITCHMODE_TURBO = true;
}