From 7f782a1bc342943988d25f8c450af978660916f0 Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Sat, 15 Oct 2022 22:14:21 +0100 Subject: [PATCH] Fix calculating train curve speed limit on dual rail type tiles --- src/train_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp index a5b0ebbc15..f7ce6b6e2e 100644 --- a/src/train_cmd.cpp +++ b/src/train_cmd.cpp @@ -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) {