Skip to content

Commit 176b6f0

Browse files
committed
bugfix: Singular right-click logic now always executes after a double right-click
1 parent 783bdb7 commit 176b6f0

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Generals/Code/GameEngine/Source/GameClient/MessageStream/CommandXlat.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3556,6 +3556,10 @@ GameMessageDisposition CommandTranslator::translateGameMessage(const GameMessage
35563556

35573557
//-----------------------------------------------------------------------------
35583558
case GameMessage::MSG_MOUSE_RIGHT_DOUBLE_CLICK:
3559+
{
3560+
m_mouseRightDown = m_mouseRightUp; // Allow isClick to succeed on fall through
3561+
FALLTHROUGH; //intentional fall through
3562+
}
35593563
case GameMessage::MSG_MOUSE_RIGHT_CLICK:
35603564
{
35613565
// right click is only actioned here if we're in alternate mouse mode

GeneralsMD/Code/GameEngine/Source/GameClient/MessageStream/CommandXlat.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3922,6 +3922,8 @@ GameMessageDisposition CommandTranslator::translateGameMessage(const GameMessage
39223922

39233923
break;
39243924
}
3925+
3926+
m_mouseRightDown = m_mouseRightUp; // Allow isClick to succeed on fall through
39253927
FALLTHROUGH; //intentional fall through
39263928
}
39273929
case GameMessage::MSG_MOUSE_RIGHT_CLICK:

0 commit comments

Comments
 (0)