Skip to content

Commit 8d8ad35

Browse files
committed
Merge pull request OpenXcom#868 from ajschult/umrBranch2
only look at event button for button events
2 parents 1bad682 + ac7b8fd commit 8d8ad35

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Battlescape/BattlescapeState.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1460,7 +1460,7 @@ void BattlescapeState::warning(const std::string &message)
14601460
*/
14611461
inline void BattlescapeState::handle(Action *action)
14621462
{
1463-
if (_game->getCursor()->getVisible() || action->getDetails()->button.button == SDL_BUTTON_RIGHT)
1463+
if (_game->getCursor()->getVisible() || (action->getDetails()->type == SDL_MOUSEBUTTONDOWN && action->getDetails()->button.button == SDL_BUTTON_RIGHT))
14641464
{
14651465
State::handle(action);
14661466

0 commit comments

Comments
 (0)