1
0
Fork 0

(svn r8465) -Regression (r8455): Switching from dual to single head should switch to wagon if power is zero. .Or something.

release/0.6
peter1138 2007-01-30 22:00:25 +00:00
parent 8933ffd9ac
commit d838a477e2
1 changed files with 2 additions and 1 deletions

View File

@ -327,7 +327,8 @@ static bool RailVehicleChangeInfo(uint engine, int numinfo, int prop, byte **buf
rvi[i].power *= 2; rvi[i].power *= 2;
rvi[i].running_cost_base *= 2; rvi[i].running_cost_base *= 2;
} }
rvi[i].railveh_type = RAILVEH_SINGLEHEAD; rvi[i].railveh_type = rvi[i].power == 0 ?
RAILVEH_WAGON : RAILVEH_SINGLEHEAD;
} }
} }
break; break;