summaryrefslogtreecommitdiff
path: root/src/eventsmanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-09-29 18:40:47 +0300
committerAndrei Karas <akaras@inbox.ru>2017-09-29 18:40:47 +0300
commit158e2b5eb03ae01bf5c49f87292bf7aca8ae749b (patch)
treed6aa6fc7edcdc19b8edf1222bb85b047710e94f5 /src/eventsmanager.cpp
parent12b83ad925ecc0b6416a12a9f83757fbd1f04d79 (diff)
downloadManaVerse-158e2b5eb03ae01bf5c49f87292bf7aca8ae749b.tar.gz
ManaVerse-158e2b5eb03ae01bf5c49f87292bf7aca8ae749b.tar.bz2
ManaVerse-158e2b5eb03ae01bf5c49f87292bf7aca8ae749b.tar.xz
ManaVerse-158e2b5eb03ae01bf5c49f87292bf7aca8ae749b.zip
Fix code style.
Diffstat (limited to 'src/eventsmanager.cpp')
-rw-r--r--src/eventsmanager.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/eventsmanager.cpp b/src/eventsmanager.cpp
index 1ca458366..bf463a0c2 100644
--- a/src/eventsmanager.cpp
+++ b/src/eventsmanager.cpp
@@ -512,13 +512,14 @@ void EventsManager::logEvent(const SDL_Event &event)
{
#ifdef USE_X11
const bool res = X11Logger::logEvent(event);
+ if (res == false)
+ logger->assertLog("event: SDL_SYSWMEVENT: not supported:");
#else // USE_X11
const bool res = false;
+ logger->assertLog("event: SDL_SYSWMEVENT: not supported:");
#endif // USE_X11
- if (res == false)
- logger->assertLog("event: SDL_SYSWMEVENT: not supported:");
break;
}
case SDL_USEREVENT: