Cache whether ground vehicles currently have 0 slope resistance

This commit is contained in:
Jonathan G Rennison
2019-02-16 21:27:08 +00:00
parent e6b788591d
commit 3b55f5d765
5 changed files with 12 additions and 1 deletions

View File

@@ -2175,6 +2175,8 @@ void ReverseTrainDirection(Train *v)
AdvanceWagonsAfterSwap(v);
ClrBit(v->vcache.cached_veh_flags, VCF_GV_ZERO_SLOPE_RESIST);
if (IsRailDepotTile(v->tile)) {
InvalidateWindowData(WC_VEHICLE_DEPOT, v->tile);
}