Fix calculating train curve speed limit on dual rail type tiles

pull/444/head
Jonathan G Rennison 2 years ago
parent d2526780be
commit 7f782a1bc3

@ -664,7 +664,7 @@ int Train::GetCurveSpeedLimit() const
if (max_speed != absolute_max_speed) {
/* Apply the current railtype's curve speed advantage */
const RailtypeInfo *rti = GetRailTypeInfo(GetRailType(this->tile));
const RailtypeInfo *rti = GetRailTypeInfo(GetRailTypeByTrackBit(this->tile, this->track));
max_speed += (max_speed / 2) * rti->curve_speed;
if (this->tcache.cached_tflags & TCF_TILT) {

Loading…
Cancel
Save