mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2025-01-03 15:39:46 +01:00
Don't hardcode destroy() arguments in loadcustom()
Otherwise, the new arguments to destroy(), which are 'moving' and 'disappear', would be thrown away by the simplified parser. Let's create less work for ourselves to do and simply not have a hardcoded list of allowed arguments for destroy() in the parser.
This commit is contained in:
parent
08971b3311
commit
c97b28f238
1 changed files with 1 additions and 7 deletions
|
@ -3768,13 +3768,7 @@ void scriptclass::loadcustom(const std::string& t)
|
||||||
add("custom"+lines[i]);
|
add("custom"+lines[i]);
|
||||||
}else if(words[0] == "destroy"){
|
}else if(words[0] == "destroy"){
|
||||||
if(customtextmode==1){ add("endtext"); customtextmode=0;}
|
if(customtextmode==1){ add("endtext"); customtextmode=0;}
|
||||||
if(words[1]=="gravitylines"){
|
add(lines[i]);
|
||||||
add("destroy(gravitylines)");
|
|
||||||
}else if(words[1]=="warptokens"){
|
|
||||||
add("destroy(warptokens)");
|
|
||||||
}else if(words[1]=="platforms"){
|
|
||||||
add("destroy(platforms)");
|
|
||||||
}
|
|
||||||
}else if(words[0] == "speaker"){
|
}else if(words[0] == "speaker"){
|
||||||
speakermode=0;
|
speakermode=0;
|
||||||
if(words[1]=="gray" || words[1]=="grey" || words[1]=="terminal" || words[1]=="0") speakermode=0;
|
if(words[1]=="gray" || words[1]=="grey" || words[1]=="terminal" || words[1]=="0") speakermode=0;
|
||||||
|
|
Loading…
Reference in a new issue