mirror of https://github.com/OpenTTD/OpenTTD
(svn r21874) -Fix: when a single-vehicle train was reversed while on a slope, its GOINGUP/DOWN weren't swapped
parent
698d840581
commit
1ac51128f5
|
@ -1487,6 +1487,10 @@ static void ReverseTrainSwapVeh(Train *v, int l, int r)
|
||||||
UpdateStatusAfterSwap(a);
|
UpdateStatusAfterSwap(a);
|
||||||
UpdateStatusAfterSwap(b);
|
UpdateStatusAfterSwap(b);
|
||||||
} else {
|
} 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);
|
UpdateStatusAfterSwap(a);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue