(svn r16480) -Fix (r15617): Invalidate newgrf variable caches of more vehicles in more places. Esp. they were only invalidated for trains.

This commit is contained in:
frosch
2009-05-31 12:03:14 +00:00
parent 749c976e47
commit 6e06b592ad
7 changed files with 44 additions and 4 deletions

View File

@@ -122,7 +122,7 @@ CommandCost CmdSetCompanyColour(TileIndex tile, DoCommandFlag flags, uint32 p1,
/* Company colour data is indirectly cached. */
Vehicle *v;
FOR_ALL_VEHICLES(v) {
if (v->owner == _current_company) v->vcache.cache_valid = 0;
if (v->owner == _current_company) v->InvalidateNewGRFCache();
}
}
return CommandCost();