mirror of
https://github.com/shavitush/bhoptimer.git
synced 2025-12-07 10:28:26 +00:00
fix ApplyFlags for the replay bot (#977)
This commit is contained in:
parent
3d670a7812
commit
080c64f8b9
@ -1839,14 +1839,14 @@ public void Shavit_OnFinish(int client, int style, float time, int jumps, int st
|
||||
|
||||
void ApplyFlags(int &flags1, int flags2, int flag)
|
||||
{
|
||||
if((flags2 & flag) > 0)
|
||||
if((flags2 & flag) != 0)
|
||||
{
|
||||
flags1 |= flag;
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
flags2 &= ~flag;
|
||||
flags1 &= ~flag;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user