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 /misc_cmd.c | |
parent | 5c5840417e2f03514c51098f4786c6c1d6030b59 (diff) | |
download | openttd-d71788c40206fa35b792d34769fde7768b4456c1.tar.xz |
(svn r2660) Get rid of some more shifting/anding/casting
Diffstat (limited to 'misc_cmd.c')
-rw-r--r-- | misc_cmd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/misc_cmd.c b/misc_cmd.c index 5e5926064..1b087b498 100644 --- a/misc_cmd.c +++ b/misc_cmd.c @@ -32,9 +32,10 @@ int32 CmdSetPlayerFace(int x, int y, uint32 flags, uint32 p1, uint32 p2) int32 CmdSetPlayerColor(int x, int y, uint32 flags, uint32 p1, uint32 p2) { Player *p, *pp; - byte colour = (byte)p2; + byte colour; if (p2 >= 16) return CMD_ERROR; // max 16 colours + colour = p2; p = GetPlayer(_current_player); |