2 parents 1bad682 + ac7b8fd commit 8d8ad35Copy full SHA for 8d8ad35
1 file changed
src/Battlescape/BattlescapeState.cpp
@@ -1460,7 +1460,7 @@ void BattlescapeState::warning(const std::string &message)
1460
*/
1461
inline void BattlescapeState::handle(Action *action)
1462
{
1463
- if (_game->getCursor()->getVisible() || action->getDetails()->button.button == SDL_BUTTON_RIGHT)
+ if (_game->getCursor()->getVisible() || (action->getDetails()->type == SDL_MOUSEBUTTONDOWN && action->getDetails()->button.button == SDL_BUTTON_RIGHT))
1464
1465
State::handle(action);
1466
0 commit comments