mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-12 18:40:29 +00:00
(svn r21874) -Fix: when a single-vehicle train was reversed while on a slope, its GOINGUP/DOWN weren't swapped
This commit is contained in:
parent
698d840581
commit
1ac51128f5
@ -1487,6 +1487,10 @@ static void ReverseTrainSwapVeh(Train *v, int l, int r)
|
||||
UpdateStatusAfterSwap(a);
|
||||
UpdateStatusAfterSwap(b);
|
||||
} else {
|
||||
/* Swap GVF_GOINGUP_BIT/GVF_GOINGDOWN_BIT.
|
||||
* This is a little bit redundant way, a->gv_flags will
|
||||
* be (re)set twice, but it reduces code duplication */
|
||||
SwapTrainFlags(&a->gv_flags, &a->gv_flags);
|
||||
UpdateStatusAfterSwap(a);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user