summaryrefslogtreecommitdiff
path: root/main_gui.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-11-14 08:09:57 +0000
committertron <tron@openttd.org>2005-11-14 08:09:57 +0000
commit833032adc09ce95c68d4a4b412221a0b3f88e670 (patch)
tree80b15078ff5a1c09815ccb23f4c9e7629774dae4 /main_gui.c
parent357aba747578ecd3b8cc1a29bc740634211ada37 (diff)
downloadopenttd-833032adc09ce95c68d4a4b412221a0b3f88e670.tar.xz
(svn r3177) GB, CLRBIT, HASBIT, TOGGLEBIT
Diffstat (limited to 'main_gui.c')
-rw-r--r--main_gui.c16
1 files changed, 8 insertions, 8 deletions
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;
}