Fix calculating train curve speed limit on dual rail type tiles

This commit is contained in:
Jonathan G Rennison
2022-10-15 22:14:21 +01:00
parent d2526780be
commit 7f782a1bc3

View File

@@ -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) {