From 0d314b9bea506a75da3e5d54763759a33851b18d Mon Sep 17 00:00:00 2001 From: Strangerke Date: Mon, 27 Jun 2016 22:41:18 +0200 Subject: DM: Fix a GCC warning, fix code alignment in hasPendingClick --- engines/dm/eventman.cpp | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/engines/dm/eventman.cpp b/engines/dm/eventman.cpp index 96cda36747..437a02d01b 100644 --- a/engines/dm/eventman.cpp +++ b/engines/dm/eventman.cpp @@ -694,13 +694,16 @@ void EventManager::commandProcess81ClickInPanel(int16 x, int16 y) { if (commandType != kCommandNone) commandProcessCommands160To162ClickInResurrectReincarnatePanel(commandType); break; + default: + break; } } - bool EventManager::hasPendingClick(Common::Point& point, MouseButton button) - { - if (_pendingClickButton && button == _pendingClickButton) - point = _pendingClickPos; - return _pendingClickPresent; - } +bool EventManager::hasPendingClick(Common::Point& point, MouseButton button) { + if (_pendingClickButton && button == _pendingClickButton) + point = _pendingClickPos; + + return _pendingClickPresent; +} + }; // end of namespace DM -- cgit v1.2.3