Created
March 4, 2018 14:53
-
-
Save andythenorth/714d522c9c135c66cc3e96f81a81cba3 to your computer and use it in GitHub Desktop.
NRT cache invalidation on change of type
This file contains 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 3b30c4fc4..2fea6ce25 100644 | |
--- a/src/roadveh_cmd.cpp | |
+++ b/src/roadveh_cmd.cpp | |
@@ -1310,6 +1310,7 @@ again: | |
if (GetRoadType(old_tile, v->rtid.basetype) != GetRoadType(tile, v->rtid.basetype)) { | |
v->First()->CargoChanged(); | |
+ RoadVehUpdateCache(v); | |
} | |
} | |
if (new_dir != v->direction) { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment