Skip to content

Commit

Permalink
Moved zone exclusion check to before removal call.
Browse files Browse the repository at this point in the history
  • Loading branch information
htwmmo committed Feb 4, 2024
1 parent 9cb5ad9 commit 084b822
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
14 changes: 7 additions & 7 deletions MQ2GMCheck.cpp
Expand Up @@ -21,7 +21,7 @@
#include <mq/imgui/ImGuiUtils.h>

PreSetup("MQ2GMCheck");
PLUGIN_VERSION(5.31);
PLUGIN_VERSION(5.32);

constexpr const char* PluginMsg = "\ay[\aoMQ2GMCheck\ax] ";

Expand Down Expand Up @@ -1397,6 +1397,12 @@ PLUGIN_API void OnPulse()
waveOutSetVolume(nullptr, dwVolume);
}

// Check if we are in an excluded zone
if (IsExcludedZone())
{
return;
}

if (gGameState == GAMESTATE_INGAME)
{
duration elapsed = clock::now() - pulsestart;
Expand Down Expand Up @@ -1428,12 +1434,6 @@ PLUGIN_API void OnPulse()
}), GMNames.end());
}

// Check if we are in an excluded zone
if (IsExcludedZone())
{
return;
}

// Add any GMs that appeared
SPAWNINFO* pSpawn = pSpawnList;
while (pSpawn) {
Expand Down
8 changes: 4 additions & 4 deletions MQ2GMCheck.rc
Expand Up @@ -51,8 +51,8 @@ END
//

VS_VERSION_INFO VERSIONINFO
FILEVERSION 5,31
PRODUCTVERSION 5,31
FILEVERSION 5,32
PRODUCTVERSION 5,32
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS 0x1L
Expand All @@ -73,11 +73,11 @@ BEGIN
#else
VALUE "FileDescription", "MQ2GMCheck Release Version"
#endif
VALUE "FileVersion", "5.31"
VALUE "FileVersion", "5.32"
VALUE "InternalName", "MQ2GMCheck.dll"
VALUE "OriginalFilename", "MQ2GMCheck.dll"
VALUE "ProductName", "MQ2GMCheck"
VALUE "ProductVersion", "5.31"
VALUE "ProductVersion", "5.32"
END
END
BLOCK "VarFileInfo"
Expand Down

0 comments on commit 084b822

Please sign in to comment.