# HG changeset patch # User peter1138 # Date 2006-01-24 09:33:51 # Node ID 8ce6e775066c61fb8714a5d4e0b838df20636cde # Parent 9b1294067c0500889a356c2c894dd4c14fae5bf0 (svn r3424) - NewGRF fix: Only power should decide whether a rail vehicle is an engine or a wagon. (fixes SHIKI 810 in jpsetw.grf) diff --git a/newgrf.c b/newgrf.c --- a/newgrf.c +++ b/newgrf.c @@ -255,7 +255,6 @@ static bool RailVehicleChangeInfo(uint e runcostfact /= 2; rvi[i].running_cost_base = runcostfact; - dewagonize(runcostfact, engine + i); } } break; case 0x0E: { /* Running cost base */ @@ -267,7 +266,6 @@ static bool RailVehicleChangeInfo(uint e case 0x4C36: rvi[i].running_cost_class = 1; break; case 0x4C3C: rvi[i].running_cost_class = 2; break; } - dewagonize(base, engine + i); } } break; case 0x12: { /* Sprite ID */