mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-26 16:09:10 +00:00
(svn r3074) -NewGrf: Fix stupid typo in weight setting.
This commit is contained in:
2
newgrf.c
2
newgrf.c
@@ -394,7 +394,7 @@ static bool RailVehicleChangeInfo(uint engine, int numinfo, int prop, byte **buf
|
|||||||
FOR_EACH_OBJECT {
|
FOR_EACH_OBJECT {
|
||||||
byte weight = grf_load_byte(&buf);
|
byte weight = grf_load_byte(&buf);
|
||||||
|
|
||||||
if (weight < 4) {
|
if (weight > 4) {
|
||||||
grfmsg(GMS_NOTICE, "RailVehicleChangeInfo: Nonsensical weight of %d tons, ignoring.", weight << 8);
|
grfmsg(GMS_NOTICE, "RailVehicleChangeInfo: Nonsensical weight of %d tons, ignoring.", weight << 8);
|
||||||
} else {
|
} else {
|
||||||
SB(rvi[i].weight, 8, 8, weight);
|
SB(rvi[i].weight, 8, 8, weight);
|
||||||
|
Reference in New Issue
Block a user