summaryrefslogtreecommitdiff
path: root/window.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-06-10 08:37:41 +0000
committertron <tron@openttd.org>2006-06-10 08:37:41 +0000
commit0a72639c2d7254c37cd6f8ab0a9fa0f4d63fd2ea (patch)
treeddcc7798b94be03152e4b31cee4bf48bc73774e4 /window.c
parent15c945c9263ffd64f01fd3da92fcb4efb17fe691 (diff)
downloadopenttd-0a72639c2d7254c37cd6f8ab0a9fa0f4d63fd2ea.tar.xz
(svn r5210) Many small changes which piled up: const, unsigned, variable scope, CSE for readability, DeMorgan, if cascades -> switch, whitespace, parentheses, bracing, misc.
Diffstat (limited to 'window.c')
-rw-r--r--window.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/window.c b/window.c
index c5aa2fde8..4e990caad 100644
--- a/window.c
+++ b/window.c
@@ -1456,9 +1456,9 @@ void InputLoop(void)
_current_player = _local_player;
// Handle pressed keys
- if (_pressed_key) {
- uint32 key = _pressed_key; _pressed_key = 0;
- HandleKeypress(key);
+ if (_pressed_key != 0) {
+ HandleKeypress(_pressed_key);
+ _pressed_key = 0;
}
// Mouse event?