Skip to content

Instantly share code, notes, and snippets.

@andythenorth
Last active March 6, 2018 20:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andythenorth/af94ca454f5caa373759680b91f2d088 to your computer and use it in GitHub Desktop.
Save andythenorth/af94ca454f5caa373759680b91f2d088 to your computer and use it in GitHub Desktop.
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