Commit Graph

1822 Commits (92fc0f364b86cce92f2675ad2de8f5b6567313c8)

Author SHA1 Message Date
Jonathan G Rennison 2e022d5194 Move game events to new event_logs header/cpp files 3 years ago
Jonathan G Rennison aff4dc74d0 Avoid premature reservations with reverse at waypoint orders with wait time 3 years ago
Jonathan G Rennison 3c55250cd6 Fix last station visited not being set when reservation ends at target
Long reserve and subsequent routing restrictions immediately beyond
the reservation were evaluated without the last station visited being
updated to reflect that the target station was already reached.
3 years ago
Jonathan G Rennison 964ea7b910 Debug: Show realistic braking approach speeds in debug window 3 years ago
Jonathan G Rennison 5d351a14d2 Add new signal type: no-entry signal
This is only passable in one direction, but does not have a signal
or show an aspect in the opposite direction

Add a setting for whether this is shown in the signal UI.
Off by default.
3 years ago
Jonathan G Rennison f8e30e807d Fix ProcessOrders not always being called after leaving a waiting order
Fixes conditional order loop on leaving a depot
3 years ago
Jonathan G Rennison b08cc3cf38 Reduce screen re-draw area for tunnel/bridge end signal updates 3 years ago
Jonathan G Rennison f6c2a81f72 Reduce screen re-draw area for bridge middle signal updates 3 years ago
Jonathan G Rennison fea967bbbf Prevent train reversing when wholly inside a train depot
See: #316, https://github.com/OpenTTD/OpenTTD/issues/9520
3 years ago
Jonathan G Rennison b2ef6c0de8 Add implementation of multi-aspect signalling and GRF support
Requires realistic braking

See: #247
3 years ago
Jonathan G Rennison 6546f6deba Fix tunnel exit signal not being set to red when train exited 3 years ago
Jonathan G Rennison dc4b7e0558 Add helper function to set tunnel/bridge entrance signal green 3 years ago
Jonathan G Rennison 55c4fe7d45 Add helper functions to get tunnel/bridge entrance/exit trackdirs 3 years ago
Jonathan G Rennison 2283ce3a2b ATC: Reduce lower limit of nominal look-ahead distance for speed timers
See: #310
3 years ago
Jonathan G Rennison b8d5113c5a Tracerestrict: Add slot action mode, try to acquire (only on reserve) 3 years ago
Jonathan G Rennison 9003ef7d11 When reversing train, ensure that loading is aborted if necessary 3 years ago
Jonathan G Rennison 2135aa2ae8 Fix false positive desync log message for powered free wagon chains 3 years ago
Jonathan G Rennison 6a009686c9 Fix #299: Add estimated max speed (full) to template windows 3 years ago
Jonathan G Rennison 502af119e5 Rename and move train max speed estimation functions 3 years ago
Jonathan G Rennison fb4e10626e Make look ahead distance vaiable with speed, within a reasonable range 3 years ago
Jonathan G Rennison 11e49ef99e Only apply signal speed restrictions from the front direction 3 years ago
Jonathan G Rennison 5fb3eb0bb9 Adjust signal speed restriction timeouts when date or day length changed 3 years ago
Jonathan G Rennison e16c29ef7d Use already found iterator for erasing from hash map 3 years ago
Jonathan G Rennison 62075c88de Apply ATC speed restriction as advisory to prevent instant braking
Remove redundant function
3 years ago
Jonathan G Rennison 93be763301 Update ticks per tile constant 3 years ago
Jonathan G Rennison ee2d77ecab Move train speed adaptation structs to separate header file 3 years ago
Jonathan G Rennison 3bba9ef37a Fix setting name 3 years ago
Jonathan G Rennison e15acd3af8 Avoid train speed adaption overhead when setting not enabled 3 years ago
Jonathan G Rennison 28e39c9045 Fix trailing whitespace 3 years ago
Andreas Schmitt 669770f209 Fix a few issues and reset everything on start of new game 3 years ago
Andreas Schmitt 86cfefba08 Fix signed unsigned overflow 3 years ago
Andreas Schmitt c1bf236a26 Rewrite the ATC logic
Now signals store speed information with a timeout for this data's validity
3 years ago
Andreas Schmitt 61669868bf Removed change and updated signal count 3 years ago
Andreas Schmitt 5d20b9397c Revert "Try something"
This reverts commit 475a097f36a70383d50ee68dac38b5ce087a1eb1.
3 years ago
Andreas Schmitt 02278f7a6f Try something
This doesn't work but hey... it's broken already in combination with realistic breaking
3 years ago
Andreas Schmitt debc504e59 Add a setting for train speed adaptation
Prior to this change, without realistic breaking, trains would continuously run into the train in front of them. This makes them adjust their speed based on trains in front of them
3 years ago
Jonathan G Rennison 1002c6d9d2 Fix various compiler warnings
See: #267
3 years ago
Jonathan G Rennison f703e23322 Fix assert fail when ChooseTrainTrack called on disallowed 90 degree turn 3 years ago
Jonathan G Rennison 8eb34b2f10 Do not attach temporary wagons to free wagon chains when autoreplacing
See: https://github.com/OpenTTD/OpenTTD/issues/9264
3 years ago
Jonathan G Rennison 6b2a05d02e Drive through depots: Allow moving between ends when current exit blocked 3 years ago
Jonathan G Rennison 6a62b94263 Add NewGRF railtype flag to disable realistic braking for vehs of that type
See: #242
3 years ago
Jonathan G Rennison ba2e6087b2 Add train cache flag for whether train using realistic braking physics 3 years ago
Jonathan G Rennison b514d29db1 Replace TrainCache::cached_tilt with a flags field 3 years ago
Jonathan G Rennison 686bcb8009 Fix no vehicle tile hash update when moving train in drive-through depot 3 years ago
Jonathan G Rennison 8e92a6844f Add a "misc_debug" console command
Add a flag to open veh window when TrainBrakesOverheatedBreakdown called
3 years ago
Jonathan G Rennison 5d5100449e Adjust realistic braking physics
Realistic acceleration uses 4 x the mass for acceleration as braking
Use 4 x mass for realistic braking as well to match
Increase per train length braking force
Add a power-based per train length braking force
3 years ago
Jonathan G Rennison d484c32d44 Reduce sensitivity of train overheated breakdown 3 years ago
Jonathan G Rennison 26a123b708 Realistic braking: Cache offset of centre of mass of train 4 years ago
Jonathan G Rennison dc8680eec5 Ensure that cached decel values of free wagon chain heads are zeroed 4 years ago
Jonathan G Rennison 8fd4f65a85 Validate lookahead reservation end OK before calling FollowTrainReservation 4 years ago