mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-30 09:54:10 +03:00
Don't use obj.changeflag() to set flags
The way I see it, that function is basically an unnecessary middleman.
This commit is contained in:
@@ -194,9 +194,9 @@ void scriptclass::run()
|
||||
{
|
||||
if(ss_toi(words[1])>=0 && ss_toi(words[1])<100){
|
||||
if(words[2]=="on"){
|
||||
obj.changeflag(ss_toi(words[1]),true);
|
||||
obj.flags[ss_toi(words[1])] = true;
|
||||
}else if(words[2]=="off"){
|
||||
obj.changeflag(ss_toi(words[1]),false);
|
||||
obj.flags[ss_toi(words[1])] = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user