Skip to content

Commit 74afd8f

Browse files
committed
Add missing clearKeyModState
1 parent d12db19 commit 74afd8f

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

  • GeneralsMD/Code/GameEngine/Source/GameClient/MessageStream

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -595,6 +595,14 @@ GameMessageDisposition MetaEventTranslator::translateGameMessage(const GameMessa
595595
m_keyDownInfos[key].setKeyModState((MappableKeyModState)newModState);
596596
}
597597
}
598+
else
599+
{
600+
if (newModState != NONE)
601+
{
602+
// Forget that this key and mod state are pressed.
603+
m_keyDownInfos[key].clearKeyModState((MappableKeyModState)newModState);
604+
}
605+
}
598606

599607
m_lastModState = newModState;
600608
}

0 commit comments

Comments
 (0)