diff options
author | Darkvater <darkvater@openttd.org> | 2005-07-19 22:29:35 +0000 |
---|---|---|
committer | Darkvater <darkvater@openttd.org> | 2005-07-19 22:29:35 +0000 |
commit | 2379c59ab8e3a2bf022a3ed104fad81da3112298 (patch) | |
tree | 001a291418e4a47672d9d859a4b11046fc6cfe81 /train_cmd.c | |
parent | f0c0c03c5f6eceafa0b10f40f413e893d02f34e8 (diff) | |
download | openttd-2379c59ab8e3a2bf022a3ed104fad81da3112298.tar.xz |
(svn r2645) Fix (useless)warning in graph_gui and add brackets around HASBIT in an if statement
Diffstat (limited to 'train_cmd.c')
-rw-r--r-- | train_cmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/train_cmd.c b/train_cmd.c index 6508eaa58..5a5eb70ff 100644 --- a/train_cmd.c +++ b/train_cmd.c @@ -47,7 +47,7 @@ void TrainCargoChanged(Vehicle *v) { vweight += rvi->weight; vweight += (_cargoc.weights[u->cargo_type] * u->cargo_count) / 16; // powered wagons have extra weight added - if HASBIT(u->u.rail.flags, VRF_POWEREDWAGON) + if (HASBIT(u->u.rail.flags, VRF_POWEREDWAGON)) vweight += RailVehInfo(v->engine_type)->pow_wag_weight; // consist weight is the sum of the weight of all vehicles in the consist |