From 833032adc09ce95c68d4a4b412221a0b3f88e670 Mon Sep 17 00:00:00 2001 From: tron Date: Mon, 14 Nov 2005 08:09:57 +0000 Subject: (svn r3177) GB, CLRBIT, HASBIT, TOGGLEBIT --- main_gui.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'main_gui.c') diff --git a/main_gui.c b/main_gui.c index 2b6a38e64..4ccc585b5 100644 --- a/main_gui.c +++ b/main_gui.c @@ -979,14 +979,14 @@ static void ToolbarOptionsClick(Window *w) w = PopupMainToolbMenu(w, 43, 2, STR_02C3_GAME_OPTIONS, 13, 0); x = (uint16)-1; - if (_display_opt & DO_SHOW_TOWN_NAMES) x &= ~(1<<5); - if (_display_opt & DO_SHOW_STATION_NAMES) x &= ~(1<<6); - if (_display_opt & DO_SHOW_SIGNS) x &= ~(1<<7); - if (_display_opt & DO_WAYPOINTS) x &= ~(1<<8); - if (_display_opt & DO_FULL_ANIMATION) x &= ~(1<<9); - if (_display_opt & DO_FULL_DETAIL) x &= ~(1<<10); - if (_display_opt & DO_TRANS_BUILDINGS) x &= ~(1<<11); - if (_display_opt & DO_TRANS_SIGNS) x &= ~(1<<12); + if (_display_opt & DO_SHOW_TOWN_NAMES) CLRBIT(x, 5); + if (_display_opt & DO_SHOW_STATION_NAMES) CLRBIT(x, 6); + if (_display_opt & DO_SHOW_SIGNS) CLRBIT(x, 7); + if (_display_opt & DO_WAYPOINTS) CLRBIT(x, 8); + if (_display_opt & DO_FULL_ANIMATION) CLRBIT(x, 9); + if (_display_opt & DO_FULL_DETAIL) CLRBIT(x, 10); + if (_display_opt & DO_TRANS_BUILDINGS) CLRBIT(x, 11); + if (_display_opt & DO_TRANS_SIGNS) CLRBIT(x, 12); WP(w,menu_d).checked_items = x; } -- cgit v1.2.3-70-g09d2