Fix calculating train curve speed limit on dual rail type tiles
This commit is contained in:
@@ -664,7 +664,7 @@ int Train::GetCurveSpeedLimit() const
|
|||||||
|
|
||||||
if (max_speed != absolute_max_speed) {
|
if (max_speed != absolute_max_speed) {
|
||||||
/* Apply the current railtype's curve speed advantage */
|
/* 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;
|
max_speed += (max_speed / 2) * rti->curve_speed;
|
||||||
|
|
||||||
if (this->tcache.cached_tflags & TCF_TILT) {
|
if (this->tcache.cached_tflags & TCF_TILT) {
|
||||||
|
Reference in New Issue
Block a user