Skip to content

Commit 1875dbf

Browse files
authored
bugfix(input): Double-clicking to place a building no longer performs double-click selection logic (#1608)
1 parent dca765f commit 1875dbf

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ GameMessageDisposition PlaceEventTranslator::translateGameMessage(const GameMess
6262
{
6363

6464
//---------------------------------------------------------------------------------------------
65+
// TheSuperHackers @bugfix Prevent double-clicks from falling through to other translators during building placement
66+
case GameMessage::MSG_RAW_MOUSE_LEFT_DOUBLE_CLICK:
6567
case GameMessage::MSG_RAW_MOUSE_LEFT_BUTTON_DOWN:
6668
{
6769
// if we're in a building placement mode, do the place and send to all players

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ GameMessageDisposition PlaceEventTranslator::translateGameMessage(const GameMess
6868
{
6969

7070
//---------------------------------------------------------------------------------------------
71+
// TheSuperHackers @bugfix Prevent double-clicks from falling through to other translators during building placement
72+
case GameMessage::MSG_RAW_MOUSE_LEFT_DOUBLE_CLICK:
7173
case GameMessage::MSG_RAW_MOUSE_LEFT_BUTTON_DOWN:
7274
{
7375
// if we're in a building placement mode, do the place and send to all players

0 commit comments

Comments
 (0)