fix ApplyFlags for the replay bot (#977)

This commit is contained in:
Joe 2020-11-30 16:37:11 +00:00 committed by GitHub
parent 3d670a7812
commit 080c64f8b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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