This is a fork of Zandronum used on servers hosted by The Sentinels Playground (TSPG).
Revision | 3e3cdba4126d2f94bf7f6d0f016d080d9208a0d6 (tree) |
---|---|
Time | 2021-09-27 01:49:28 |
Author | Adam Kaminski <kaminskiadam9@gmai...> |
Commiter | Adam Kaminski |
Fixed a previously locked gameplay/compatibility flag from not being unlocked if it's later redefined in a "GameSettings" block.
@@ -296,6 +296,8 @@ | ||
296 | 296 | // [AK] Lock this flag so it can't be manually changed. |
297 | 297 | if ( bLockFlags ) |
298 | 298 | g_GameModes[mode].lFlagsets[flagset][FLAGSET_LOCKEDMASK] |= ulBit; |
299 | + else | |
300 | + g_GameModes[mode].lFlagsets[flagset][FLAGSET_LOCKEDMASK] &= ~ulBit; | |
299 | 301 | } |
300 | 302 | } |
301 | 303 | else |
@@ -311,6 +313,8 @@ | ||
311 | 313 | // [AK] Lock this flag so it can't be manually changed. |
312 | 314 | if ( bLockFlags ) |
313 | 315 | g_GameModes[GameMode].lFlagsets[flagset][FLAGSET_LOCKEDMASK] |= ulBit; |
316 | + else | |
317 | + g_GameModes[GameMode].lFlagsets[flagset][FLAGSET_LOCKEDMASK] &= ~ulBit; | |
314 | 318 | } |
315 | 319 | } |
316 | 320 | } |