Skip to content

Commit 4466efc

Browse files
committed
refactor: Cleaner solution
1 parent 176b6f0 commit 4466efc

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3533,6 +3533,7 @@ GameMessageDisposition CommandTranslator::translateGameMessage(const GameMessage
35333533
}
35343534

35353535
//-----------------------------------------------------------------------------
3536+
case GameMessage::MSG_RAW_MOUSE_RIGHT_DOUBLE_CLICK:
35363537
case GameMessage::MSG_RAW_MOUSE_RIGHT_BUTTON_DOWN:
35373538
{
35383539
// There are two ways in which we can ignore this as a deselect:
@@ -3556,10 +3557,6 @@ GameMessageDisposition CommandTranslator::translateGameMessage(const GameMessage
35563557

35573558
//-----------------------------------------------------------------------------
35583559
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-
}
35633560
case GameMessage::MSG_MOUSE_RIGHT_CLICK:
35643561
{
35653562
// right click is only actioned here if we're in alternate mouse mode

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3874,6 +3874,7 @@ GameMessageDisposition CommandTranslator::translateGameMessage(const GameMessage
38743874
}
38753875

38763876
//-----------------------------------------------------------------------------
3877+
case GameMessage::MSG_RAW_MOUSE_RIGHT_DOUBLE_CLICK:
38773878
case GameMessage::MSG_RAW_MOUSE_RIGHT_BUTTON_DOWN:
38783879
{
38793880
// There are two ways in which we can ignore this as a deselect:
@@ -3922,8 +3923,6 @@ GameMessageDisposition CommandTranslator::translateGameMessage(const GameMessage
39223923

39233924
break;
39243925
}
3925-
3926-
m_mouseRightDown = m_mouseRightUp; // Allow isClick to succeed on fall through
39273926
FALLTHROUGH; //intentional fall through
39283927
}
39293928
case GameMessage::MSG_MOUSE_RIGHT_CLICK:

0 commit comments

Comments
 (0)