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
commitac9d926606a19f922e93d055c7a1bd16e621ec36 (patch)
tree2a24d99302dcaf6b284ee506b90267ea3abb55f0
parent6ccbfffbeabf2c7c814a5b251265201f86581571 (diff)
downloadopenttd-ac9d926606a19f922e93d055c7a1bd16e621ec36.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);