Mercurial > hg > openttd
changeset 17136:85e9c2a2bdb2 draft
(svn r21874) -Fix: when a single-vehicle train was reversed while on a slope, its GOINGUP/DOWN weren't swapped
author | smatz <smatz@openttd.org> |
---|---|
date | Fri, 21 Jan 2011 00:11:13 +0000 |
parents | af4bd8e6ba7c |
children | 0e25103841ef |
files | src/train_cmd.cpp |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/train_cmd.cpp +++ b/src/train_cmd.cpp @@ -1487,6 +1487,10 @@ 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); }