Removing some odd logic fromt the keyboard broadcast patch which now causes it to eat keystrokes on clients. I have no idea what the original intention of that was, but it tests out fine without it.

This commit is contained in:
mthiel 2009-12-31 01:50:09 +00:00
parent 027c2a849f
commit 8de84743bc
1 changed files with 2 additions and 4 deletions

View File

@ -1558,8 +1558,7 @@ CServer::onKeyDown(KeyID id, KeyModifierMask mask, KeyButton button,
assert(m_active != NULL);
// relay
if (!m_keyboardBroadcasting &&
(screens && IKeyState::CKeyInfo::isDefault(screens))) {
if (!m_keyboardBroadcasting && IKeyState::CKeyInfo::isDefault(screens)) {
m_active->keyDown(id, mask, button);
}
else {
@ -1586,8 +1585,7 @@ CServer::onKeyUp(KeyID id, KeyModifierMask mask, KeyButton button,
assert(m_active != NULL);
// relay
if (!m_keyboardBroadcasting &&
(screens && IKeyState::CKeyInfo::isDefault(screens))) {
if (!m_keyboardBroadcasting && IKeyState::CKeyInfo::isDefault(screens)) {
m_active->keyUp(id, mask, button);
}
else {