summaryrefslogtreecommitdiff
path: root/src/station_gui.cpp
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2007-11-08 16:09:04 +0000
committerbelugas <belugas@openttd.org>2007-11-08 16:09:04 +0000
commit2edf7afa6c4c2417e893a9bcd946ce65d08bb4d7 (patch)
tree3b8493a7031822f4d4d985195b822a3ca694522b /src/station_gui.cpp
parent153cba2ef35a58060edbc9a72e313f489a33ee2c (diff)
downloadopenttd-2edf7afa6c4c2417e893a9bcd946ce65d08bb4d7.tar.xz
(svn r11392) -Codechange: Remove some MSVC warnings by removing boolean typecast that can be avoided by using HASBIT instead.
Although the code is old (r2817), it is the recent changes made in macros.h that brough it up.
Diffstat (limited to 'src/station_gui.cpp')
-rw-r--r--src/station_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/station_gui.cpp b/src/station_gui.cpp
index bff5fa97c..d8722adbb 100644
--- a/src/station_gui.cpp
+++ b/src/station_gui.cpp
@@ -443,7 +443,7 @@ static void PlayerStationsWndProc(Window *w, WindowEvent *e)
case STATIONLIST_WIDGET_SORTBY: /*flip sorting method asc/desc*/
sl->flags ^= SL_ORDER; //DESC-flag
- station_sort.order = GB(sl->flags, 0, 1);
+ station_sort.order = HASBIT(sl->flags, 0);
sl->flags |= SL_RESORT;
w->flags4 |= 5 << WF_TIMEOUT_SHL;
LowerWindowWidget(w, STATIONLIST_WIDGET_SORTBY);