Fix spelling of TRPRF_SPEED_RESTRICTION_SET

This commit is contained in:
Jonathan G Rennison
2021-11-13 02:00:37 +00:00
parent dca7e7bc58
commit dad007e16a
4 changed files with 5 additions and 5 deletions

View File

@@ -579,7 +579,7 @@ static PBSTileInfo FollowReservation(Owner o, RailTypes rts, TileIndex tile, Tra
if (out.flags & TRPRF_REVERSE && au_flags & TRPAUF_REVERSE) {
lookahead->AddReverse(z);
}
if (out.flags & TRPRF_SPEED_RETRICTION_SET) {
if (out.flags & TRPRF_SPEED_RESTRICTION_SET) {
lookahead->AddSpeedRestriction(out.speed_restriction, z);
if (out.speed_restriction != 0 && (speed_restriction == 0 || out.speed_restriction < speed_restriction)) {
/* lower of the speed restrictions before or after the signal */