summaryrefslogtreecommitdiff
path: root/main_gui.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-07-21 06:31:02 +0000
committertron <tron@openttd.org>2005-07-21 06:31:02 +0000
commitd71788c40206fa35b792d34769fde7768b4456c1 (patch)
treedc5c9c74cec9bfa29f94932a20193cd902a80f15 /main_gui.c
parent5c5840417e2f03514c51098f4786c6c1d6030b59 (diff)
downloadopenttd-d71788c40206fa35b792d34769fde7768b4456c1.tar.xz
(svn r2660) Get rid of some more shifting/anding/casting
Diffstat (limited to 'main_gui.c')
-rw-r--r--main_gui.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main_gui.c b/main_gui.c
index 244cb2be0..3abb9cc65 100644
--- a/main_gui.c
+++ b/main_gui.c
@@ -502,7 +502,7 @@ static void MenuWndProc(Window *w, WindowEvent *e)
do {
if (sel== 0) GfxFillRect(x, y, x + eo, y+9, 0);
- DrawString(x + 2, y, (StringID)(string + (chk&1)), (byte)(sel==0?(byte)0xC:(byte)0x10));
+ DrawString(x + 2, y, string + (chk & 1), sel == 0 ? 0xC : 0x10);
y += 10;
string += inc;
chk >>= 1;
@@ -642,7 +642,7 @@ static void PlayerMenuWndProc(Window *w, WindowEvent *e)
SetDParam(1, p->name_2);
SetDParam(2, GetPlayerNameString(p->index, 3));
- color = (byte)((p->index==sel) ? 0xC : 0x10);
+ color = (p->index == sel) ? 0xC : 0x10;
if (chk&1) color = 14;
DrawString(x + 19, y, STR_7021, color);