diff options
author | tron <tron@openttd.org> | 2005-07-21 06:31:02 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-07-21 06:31:02 +0000 |
commit | d71788c40206fa35b792d34769fde7768b4456c1 (patch) | |
tree | dc5c9c74cec9bfa29f94932a20193cd902a80f15 /players.c | |
parent | 5c5840417e2f03514c51098f4786c6c1d6030b59 (diff) | |
download | openttd-d71788c40206fa35b792d34769fde7768b4456c1.tar.xz |
(svn r2660) Get rid of some more shifting/anding/casting
Diffstat (limited to 'players.c')
-rw-r--r-- | players.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -180,10 +180,9 @@ void DrawPlayerFace(uint32 face, int color, int x, int y) void InvalidatePlayerWindows(Player *p) { - uint pid = p->index; - if ( (byte)pid == _local_player) - InvalidateWindow(WC_STATUS_BAR, 0); + PlayerID pid = p->index; + if (pid == _local_player) InvalidateWindow(WC_STATUS_BAR, 0); InvalidateWindow(WC_FINANCES, pid); } |