diff options
author | tron <tron@openttd.org> | 2005-09-28 19:35:36 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-09-28 19:35:36 +0000 |
commit | ce1c72cf6ece7b5aaa0bac1a546efa55bdc851db (patch) | |
tree | fabd4f30d2f27b1466d0b8f0c8737b900cf5634c /main_gui.c | |
parent | 6249dd46ad3b1b23ae959f57a0def00cf98dd8ee (diff) | |
download | openttd-ce1c72cf6ece7b5aaa0bac1a546efa55bdc851db.tar.xz |
(svn r2995) Replace 0xFF/0xFFFF with CT_INVALID/OWNER_SPECTATOR/INVALID_STATION where appropriate
Diffstat (limited to 'main_gui.c')
-rw-r--r-- | main_gui.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/main_gui.c b/main_gui.c index 60119965d..a705f707c 100644 --- a/main_gui.c +++ b/main_gui.c @@ -1889,8 +1889,7 @@ static void MainToolbarWndProc(Window *w, WindowEvent *e) } break; case WE_KEYPRESS: { - int local = _local_player; - if (local == 0xff) local = 0; // spectator + PlayerID local = (_local_player != OWNER_SPECTATOR) ? _local_player : 0; switch(e->keypress.keycode) { case WKC_F1: case WKC_PAUSE: |