diff options
| author | Strangerke | 2016-06-27 22:41:18 +0200 | 
|---|---|---|
| committer | Bendegúz Nagy | 2016-08-26 23:02:22 +0200 | 
| commit | 0d314b9bea506a75da3e5d54763759a33851b18d (patch) | |
| tree | bc28a22416f956897bef63108925108d2b2a30bd | |
| parent | d770ec0f61a8fea8a2e276be6c6b841dab01bae2 (diff) | |
| download | scummvm-rg350-0d314b9bea506a75da3e5d54763759a33851b18d.tar.gz scummvm-rg350-0d314b9bea506a75da3e5d54763759a33851b18d.tar.bz2 scummvm-rg350-0d314b9bea506a75da3e5d54763759a33851b18d.zip | |
DM: Fix a GCC warning, fix code alignment in hasPendingClick
| -rw-r--r-- | engines/dm/eventman.cpp | 15 | 
1 files 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 | 
