mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-08 23:19:40 +00:00
(svn r3424) - NewGRF fix: Only power should decide whether a rail vehicle is an engine or a wagon. (fixes SHIKI 810 in jpsetw.grf)
This commit is contained in:
parent
098300cc7d
commit
ec7d2fbb39
2
newgrf.c
2
newgrf.c
@ -255,7 +255,6 @@ static bool RailVehicleChangeInfo(uint engine, int numinfo, int prop, byte **buf
|
|||||||
runcostfact /= 2;
|
runcostfact /= 2;
|
||||||
|
|
||||||
rvi[i].running_cost_base = runcostfact;
|
rvi[i].running_cost_base = runcostfact;
|
||||||
dewagonize(runcostfact, engine + i);
|
|
||||||
}
|
}
|
||||||
} break;
|
} break;
|
||||||
case 0x0E: { /* Running cost base */
|
case 0x0E: { /* Running cost base */
|
||||||
@ -267,7 +266,6 @@ static bool RailVehicleChangeInfo(uint engine, int numinfo, int prop, byte **buf
|
|||||||
case 0x4C36: rvi[i].running_cost_class = 1; break;
|
case 0x4C36: rvi[i].running_cost_class = 1; break;
|
||||||
case 0x4C3C: rvi[i].running_cost_class = 2; break;
|
case 0x4C3C: rvi[i].running_cost_class = 2; break;
|
||||||
}
|
}
|
||||||
dewagonize(base, engine + i);
|
|
||||||
}
|
}
|
||||||
} break;
|
} break;
|
||||||
case 0x12: { /* Sprite ID */
|
case 0x12: { /* Sprite ID */
|
||||||
|
Loading…
Reference in New Issue
Block a user