Bots should be affected by mp_freeforall even with disabled csdm_active.

This commit is contained in:
jeefo 2019-02-13 19:39:17 +03:00 committed by GitHub
commit 168bcf1d36
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2203,6 +2203,10 @@ void StartFrame (void) {
if (dmActive && freeForAll) {
if (dmActive->value > 0.0f) {
g_gameFlags |= GAME_CSDM;
}
else if (g_gameFlags & GAME_CSDM) {
g_gameFlags &= ~GAME_CSDM;
}
if (freeForAll->value > 0.0f) {
g_gameFlags |= GAME_CSDM_FFA;
@ -2211,10 +2215,6 @@ void StartFrame (void) {
g_gameFlags &= ~GAME_CSDM_FFA;
}
}
else if (g_gameFlags & GAME_CSDM) {
g_gameFlags &= ~GAME_CSDM;
}
}
}
g_timePerSecondUpdate = engine.timebase () + 1.0f;
}