diff options
author | frosch <frosch@openttd.org> | 2011-02-23 20:45:52 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2011-02-23 20:45:52 +0000 |
commit | 40cc3324fadce60522e97791604ae3a6643f4c2e (patch) | |
tree | dc9c0c4ae8d89636670ad0818392a07b5cfa2d12 /src/misc_gui.cpp | |
parent | 1a3a1e3b0c80831c87c9ff903d1a6a5d422b191c (diff) | |
download | openttd-40cc3324fadce60522e97791604ae3a6643f4c2e.tar.xz |
(svn r22134) -Codechange: Move ReInit() of the landinfo window from DeleteNewGRFInspectWindow() into a InvalidateData call.
Diffstat (limited to 'src/misc_gui.cpp')
-rw-r--r-- | src/misc_gui.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/misc_gui.cpp b/src/misc_gui.cpp index a24b9cf75..9e770cb41 100644 --- a/src/misc_gui.cpp +++ b/src/misc_gui.cpp @@ -330,6 +330,16 @@ public: { ::ShowNewGRFInspectWindow(GetGrfSpecFeature(this->tile), this->tile); } + + virtual void OnInvalidateData(int data) + { + switch (data) { + case 1: + /* ReInit, "debug" sprite might have changed */ + this->ReInit(); + break; + } + } }; /** |