Last active
March 6, 2018 20:33
-
-
Save andythenorth/af94ca454f5caa373759680b91f2d088 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/roadveh_cmd.cpp b/src/roadveh_cmd.cpp | |
index ca2dd1431..beb5d5b61 100644 | |
--- a/src/roadveh_cmd.cpp | |
+++ b/src/roadveh_cmd.cpp | |
@@ -1307,12 +1307,11 @@ again: | |
v->tile = tile; | |
v->state = (byte)dir; | |
v->frame = start_frame; | |
- | |
if (GetRoadType(old_tile, v->rtid.basetype) != GetRoadType(tile, v->rtid.basetype)) { | |
- v->First()->CargoChanged(); | |
if (v->IsFrontEngine()) { | |
RoadVehUpdateCache(v); | |
} | |
+ v->First()->CargoChanged(); | |
} | |
} | |
if (new_dir != v->direction) { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment