summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2005-10-20 19:44:41 +0000
committerpeter1138 <peter1138@openttd.org>2005-10-20 19:44:41 +0000
commit8bf11c2e41dd2af55b6ed28bbf7eb03650335335 (patch)
tree2a3ee8b962a74453664e4727b3ddef393ae421aa
parent2b91f55b320256a9653920f0b395879c1012d158 (diff)
downloadopenttd-8bf11c2e41dd2af55b6ed28bbf7eb03650335335.tar.xz
(svn r3074) -NewGrf: Fix stupid typo in weight setting.
-rw-r--r--newgrf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/newgrf.c b/newgrf.c
index 65dbb5316..482cc5e57 100644
--- a/newgrf.c
+++ b/newgrf.c
@@ -394,7 +394,7 @@ static bool RailVehicleChangeInfo(uint engine, int numinfo, int prop, byte **buf
FOR_EACH_OBJECT {
byte weight = grf_load_byte(&buf);
- if (weight < 4) {
+ if (weight > 4) {
grfmsg(GMS_NOTICE, "RailVehicleChangeInfo: Nonsensical weight of %d tons, ignoring.", weight << 8);
} else {
SB(rvi[i].weight, 8, 8, weight);