summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2007-01-22 02:59:50 +0000
committerbelugas <belugas@openttd.org>2007-01-22 02:59:50 +0000
commitbfa5822bd82622303bf44544d115b95e57a16c0d (patch)
tree2a24d99302dcaf6b284ee506b90267ea3abb55f0
parent71d22b2f5e2152a9c78dc833acc80f7e457c2347 (diff)
downloadopenttd-bfa5822bd82622303bf44544d115b95e57a16c0d.tar.xz
(svn r8339) -Fix(r8331): MSVC seems to be a little more strict (or less intelligent) then other compilers when it comes to operator precedence.
A copy of code from train_gui.cpp to build_vehicle_gui.cpp was not exactly the same. The earlier version did not require parenthesis to specify correct operator precedence.
-rw-r--r--src/build_vehicle_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/build_vehicle_gui.cpp b/src/build_vehicle_gui.cpp
index de4c35f3e..d39e37a1b 100644
--- a/src/build_vehicle_gui.cpp
+++ b/src/build_vehicle_gui.cpp
@@ -558,7 +558,7 @@ void DrawVehiclePurchaseInfo(int x, int y, uint w, EngineID engine_number)
}
/* Draw details, that applies to all types except rail wagons */
- if (e->type != VEH_Train || (RailVehInfo(engine_number)->flags & RVI_WAGON == 0)) {
+ if (e->type != VEH_Train || !(RailVehInfo(engine_number)->flags & RVI_WAGON)) {
/* Design date - Life length */
SetDParam(0, ymd.year);
SetDParam(1, e->lifelength);