Fixed non-debug compilation.

This commit is contained in:
hiker
2015-06-25 22:11:52 +10:00
parent b8e4aa589d
commit 4d10a680c1
2 changed files with 3 additions and 1 deletions

View File

@@ -243,13 +243,13 @@ void SFXManager::queue(SFXCommands command, MusicInformation *mi, float f)
void SFXManager::queueCommand(SFXCommand *command)
{
#ifdef DEBUG
// Don't accept any commands while data is being dumped, since the
// updates will arrive faster than the data is written, so the
// dumping will never end
if (m_currently_dumping)
return;
#ifdef DEBUG
if (UserConfigParams::m_sfx_logging && command->m_command!=SFX_EXIT)
{
SFXLogData *p = &(m_sfx_log_data[m_sfx_log_data_index]);

View File

@@ -561,10 +561,12 @@ bool onEvent(const SEvent &event)
);
}
}
#ifdef DEBUG
else if (cmdID == DEBUG_SFX_LOG && UserConfigParams::m_sfx_logging)
{
SFXManager::get()->dumpLogData();
}
#endif
else if (cmdID == DEBUG_VISUAL_VALUES)
{
#if !defined(__APPLE__)