(svn r2995) Replace 0xFF/0xFFFF with CT_INVALID/OWNER_SPECTATOR/INVALID_STATION where appropriate

This commit is contained in:
tron
2005-09-28 19:35:36 +00:00
parent 6249dd46ad
commit ce1c72cf6e
12 changed files with 52 additions and 53 deletions

View File

@@ -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: