CleverRaven / CleverRaven/Cataclysm-DDA

Trains doesn't auto-turn on reverse

Open
#30,640 0 comments 0 reactions 0 assignees View on GitHub
<Bug> Vehicles
Dominant language
C++
Stars
13.2k
Forks
4.6k
Avg merge
2d 1h
Merged PRs (30d)
205

Description

# Describe the bug
If i reverse a train (or any other rail-using vehicle), the auto-turn doesn't activate and makes the train derailed.

# Steps To Reproduce
1. Get inside a subway
2. Spawn one of the trams
3. Get on the train
4. Go reverse on the train
5. Try hitting the corner

# Expected behavior
The train auto-turn when it meets a corner, even reversed

# Screenshots
Before reversing
![image](https://user-images.githubusercontent.com/39007766/57977258-b3766880-7a1e-11e9-8521-e3e838387ae0.png)
After reversing
![image](https://user-images.githubusercontent.com/39007766/57977255-a3f71f80-7a1e-11e9-9271-b9965a34e82a.png)

# Versions and configuration
- OS: Windows [64-bit]
- Game Version: 0.D-3178-g258b2e8
- Graphics Version: Tiles
- Mods loaded: [
Dark Days Ahead [dda],
Disable NPC Needs [no_npc_food]
]

# Additional context
Save for easier testing:
[Chatom.zip](https://github.com/CleverRaven/Cataclysm-DDA/files/3194741/Chatom.zip)

Contributor guide

Open the contributing guide

Research direction

Use the linked Chatom.zip save and follow the five reproduction steps, reversing a tram into a corner. Trace the rail vehicle behavior at the corner and compare forward and reverse movement; done means auto-turn activates while reversing and the vehicle does not derail.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
game-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.