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
commit6ad38953061497471aa5af02771a944080718a17 (patch)
treedc5c9c74cec9bfa29f94932a20193cd902a80f15 /main_gui.c
parente3f4aecd3722b88f147a1a9b96fd15807de26741 (diff)
downloadopenttd-6ad38953061497471aa5af02771a944080718a17.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);