# HG changeset patch # User belugas # Date 1169434790 0 # Node ID 49f49e4b3e3e541039d377660749cce5812b5232 # Parent 9bbd2d7f2a3077740eda735474d1ca26cc1fb58a (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. diff -r 9bbd2d7f2a30 -r 49f49e4b3e3e src/build_vehicle_gui.cpp --- a/src/build_vehicle_gui.cpp Mon Jan 22 02:09:51 2007 +0000 +++ b/src/build_vehicle_gui.cpp Mon Jan 22 02:59:50 2007 +0000 @@ -558,7 +558,7 @@ } /* 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);