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

This commit is contained in:
peter1138 2007-01-30 22:00:25 +00:00
parent 4438b99ae4
commit 8b4f046fd1

View File

@ -327,7 +327,8 @@ static bool RailVehicleChangeInfo(uint engine, int numinfo, int prop, byte **buf
rvi[i].power *= 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;