• R/O
  • SSH

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

This is a fork of Zandronum used on servers hosted by The Sentinels Playground (TSPG).


Commit MetaInfo

Revision3e3cdba4126d2f94bf7f6d0f016d080d9208a0d6 (tree)
Time2021-09-27 01:49:28
AuthorAdam Kaminski <kaminskiadam9@gmai...>
CommiterAdam Kaminski

Log Message

Fixed a previously locked gameplay/compatibility flag from not being unlocked if it's later redefined in a "GameSettings" block.

Change Summary

Incremental Difference

diff -r 8e832746f711 -r 3e3cdba4126d src/gamemode.cpp
--- a/src/gamemode.cpp Sun Sep 26 12:22:34 2021 -0400
+++ b/src/gamemode.cpp Sun Sep 26 12:49:28 2021 -0400
@@ -296,6 +296,8 @@
296296 // [AK] Lock this flag so it can't be manually changed.
297297 if ( bLockFlags )
298298 g_GameModes[mode].lFlagsets[flagset][FLAGSET_LOCKEDMASK] |= ulBit;
299+ else
300+ g_GameModes[mode].lFlagsets[flagset][FLAGSET_LOCKEDMASK] &= ~ulBit;
299301 }
300302 }
301303 else
@@ -311,6 +313,8 @@
311313 // [AK] Lock this flag so it can't be manually changed.
312314 if ( bLockFlags )
313315 g_GameModes[GameMode].lFlagsets[flagset][FLAGSET_LOCKEDMASK] |= ulBit;
316+ else
317+ g_GameModes[GameMode].lFlagsets[flagset][FLAGSET_LOCKEDMASK] &= ~ulBit;
314318 }
315319 }
316320 }