diff options
author | frosch <frosch@openttd.org> | 2009-03-13 21:28:40 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2009-03-13 21:28:40 +0000 |
commit | 4129b418ccab3ed2bc6b7ab196e99d401ca67599 (patch) | |
tree | 8317c89e21d332e45318d53d44851fe0a13c0a4a /src/roadveh_cmd.cpp | |
parent | e6353a1a221bee43d2f04b060f62d3ea41633483 (diff) | |
download | openttd-4129b418ccab3ed2bc6b7ab196e99d401ca67599.tar.xz |
(svn r15701) -Fix [FS#2595]: Blame NewGRFs returning inconsistent information in purchase-list/after building before users have a chance to blame OpenTTD for incorrectly autorenewing/-replacing.
Diffstat (limited to 'src/roadveh_cmd.cpp')
-rw-r--r-- | src/roadveh_cmd.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/roadveh_cmd.cpp b/src/roadveh_cmd.cpp index fa68a9247..d7d5b927d 100644 --- a/src/roadveh_cmd.cpp +++ b/src/roadveh_cmd.cpp @@ -275,10 +275,13 @@ CommandCost CmdBuildRoadVeh(TileIndex tile, DoCommandFlag flags, uint32 p1, uint InvalidateWindowData(WC_VEHICLE_DEPOT, v->tile); InvalidateWindowClassesData(WC_ROADVEH_LIST, 0); InvalidateWindow(WC_COMPANY, v->owner); - if (IsLocalCompany()) + if (IsLocalCompany()) { InvalidateAutoreplaceWindow(v->engine_type, v->group_id); // updates the replace Road window + } GetCompany(_current_company)->num_engines[p1]++; + + CheckConsistencyOfArticulatedVehicle(v); } return cost; |