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:
Misa
2020-04-08 23:46:41 -07:00
committed by Ethan Lee
parent abfae6b4d7
commit 2ba9a0e67b
3 changed files with 27 additions and 27 deletions

View File

@@ -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;
}
}
}