summaryrefslogtreecommitdiff
path: root/src/Game/DLC/aocManager.cpp
diff options
context:
space:
mode:
authorAlexApps99 <alex.apps99@gmail.com>2021-07-26 21:58:51 +1200
committerAlexApps99 <alex.apps99@gmail.com>2021-07-26 23:05:19 +1200
commit42807160cfb33af9f3cf2fa6b0ba98f232208cdb (patch)
tree95b1b16a3f4cf7d0ab51e90b3d73e53f74ba7f2b /src/Game/DLC/aocManager.cpp
parent88bcc9eec1481b47361dc717c83e4953e8929a2b (diff)
Add #ifdef declarations for NON_MATCHING code
Diffstat (limited to 'src/Game/DLC/aocManager.cpp')
-rw-r--r--src/Game/DLC/aocManager.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Game/DLC/aocManager.cpp b/src/Game/DLC/aocManager.cpp
index 46e66553..ff8dce15 100644
--- a/src/Game/DLC/aocManager.cpp
+++ b/src/Game/DLC/aocManager.cpp
@@ -450,7 +450,8 @@ bool Manager::parseVersion() {
return true;
}
-// NON_MATCHING: stack and duplicated branch -- volatile variables are painful
+// stack and duplicated branch -- volatile variables are painful
+#ifdef NON_MATCHING
void Manager::checkVersion() {
if (mVersion == 0)
return;
@@ -469,6 +470,7 @@ void Manager::checkVersion() {
mVersionFlags.isOnBit(VersionError(VersionError::TooOld));
mVersionFlags.isOnBit(VersionError(VersionError::TooNew));
}
+#endif
bool Manager::VersionFile::readVersion() {
if (!file_handle.requestedLoad())