From ac9d926606a19f922e93d055c7a1bd16e621ec36 Mon Sep 17 00:00:00 2001 From: belugas Date: Mon, 22 Jan 2007 02:59:50 +0000 Subject: (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. --- src/build_vehicle_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/build_vehicle_gui.cpp') 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); -- cgit v1.2.3-54-g00ecf