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,17 +2203,17 @@ void StartFrame (void) {
if (dmActive && freeForAll) { if (dmActive && freeForAll) {
if (dmActive->value > 0.0f) { if (dmActive->value > 0.0f) {
g_gameFlags |= GAME_CSDM; g_gameFlags |= GAME_CSDM;
if (freeForAll->value > 0.0f) {
g_gameFlags |= GAME_CSDM_FFA;
}
else if (g_gameFlags & GAME_CSDM_FFA) {
g_gameFlags &= ~GAME_CSDM_FFA;
}
} }
else if (g_gameFlags & GAME_CSDM) { else if (g_gameFlags & GAME_CSDM) {
g_gameFlags &= ~GAME_CSDM; g_gameFlags &= ~GAME_CSDM;
} }
if (freeForAll->value > 0.0f) {
g_gameFlags |= GAME_CSDM_FFA;
}
else if (g_gameFlags & GAME_CSDM_FFA) {
g_gameFlags &= ~GAME_CSDM_FFA;
}
} }
} }
g_timePerSecondUpdate = engine.timebase () + 1.0f; g_timePerSecondUpdate = engine.timebase () + 1.0f;