(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 56988b198d
commit 9853c0dc22
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();