From 74091c3c80ead5dd8602e23665cf5e5db057341f Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Thu, 15 Apr 2021 20:19:24 +0100 Subject: [PATCH] Disable realistic braking for TELE, PIPE, WIRE railtypes by default See: #242 --- src/rail_cmd.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/rail_cmd.cpp b/src/rail_cmd.cpp index 1e8ab4f35e..4892b2ec22 100644 --- a/src/rail_cmd.cpp +++ b/src/rail_cmd.cpp @@ -201,6 +201,8 @@ RailType AllocateRailType(RailTypeLabel label) * other railtypes, the 7 is to be able to place something * before the first (default) rail type. */ rti->sorting_order = rt << 4 | 7; + + if (label == 'TELE' || label == 'PIPE' || label == 'WIRE') SetBit(rti->ctrl_flags, RTCF_NOREALISTICBRAKING); return rt; } }