Skip to content

Commit

Permalink
Actually that makes debugging more time consuming, so let's only chec…
Browse files Browse the repository at this point in the history
…k that flag in release builds.
  • Loading branch information
michael-fadely committed Feb 12, 2016
1 parent 254c4e4 commit 008f160
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion sadx-super-sonic/mod.cpp
Expand Up @@ -71,9 +71,14 @@ extern "C"

void EXPORT OnFrame()
{
if (GameState != 15 || GetEventFlag(EventFlags_SuperSonicAdventureComplete))
if (GameState != 15)
return;

#ifndef _DEBUG
if (GetEventFlag(EventFlags_SuperSonicAdventureComplete))
return;
#endif

for (Uint8 i = 0; i < 8; i++)
{
CharObj1* data1 = CharObj1Ptrs[i];
Expand Down

0 comments on commit 008f160

Please sign in to comment.