diff options
author | frosch <frosch@openttd.org> | 2013-11-07 18:17:21 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2013-11-07 18:17:21 +0000 |
commit | 0aae2fd606d0011c8e913f7b151bb74b28441a61 (patch) | |
tree | 6ee97fd3823e32d15ffb6012ae7c9d826653ea74 /src/train_cmd.cpp | |
parent | b0c2ab4501c21851e84eacfd5ea7bb0927ab9157 (diff) | |
download | openttd-0aae2fd606d0011c8e913f7b151bb74b28441a61.tar.xz |
(svn r25946) -Add: [NewGRF Debuggnig] Inspecting other vehicles in a chain.
Diffstat (limited to 'src/train_cmd.cpp')
-rw-r--r-- | src/train_cmd.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp index 96af0ec0c..038649862 100644 --- a/src/train_cmd.cpp +++ b/src/train_cmd.cpp @@ -34,6 +34,7 @@ #include "newgrf.h" #include "order_backup.h" #include "zoom_func.h" +#include "newgrf_debug.h" #include "table/strings.h" #include "table/train_cmd.h" @@ -242,6 +243,7 @@ void Train::ConsistChanged(bool same_length) SetWindowDirty(WC_VEHICLE_DETAILS, this->index); InvalidateWindowData(WC_VEHICLE_REFIT, this->index, VIWD_CONSIST_CHANGED); InvalidateWindowData(WC_VEHICLE_ORDERS, this->index, VIWD_CONSIST_CHANGED); + InvalidateNewGRFInspectWindow(GSF_TRAINS, this->index); } } @@ -1271,6 +1273,7 @@ CommandCost CmdMoveRailVehicle(TileIndex tile, DoCommandFlag flags, uint32 p1, u DeleteWindowById(WC_VEHICLE_REFIT, src->index); DeleteWindowById(WC_VEHICLE_DETAILS, src->index); DeleteWindowById(WC_VEHICLE_TIMETABLE, src->index); + DeleteNewGRFInspectWindow(GSF_TRAINS, src->index); SetWindowDirty(WC_COMPANY, _current_company); /* Delete orders, group stuff and the unit number as we're not the |