summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2007-02-27 16:07:04 +0000
committerDarkvater <darkvater@openttd.org>2007-02-27 16:07:04 +0000
commit8eced4450609f82893fbb534c794081b82fb19d4 (patch)
tree1fbcc909ffc1591dc9c81a6d33a37184fc69a8af
parentc5e59b8a6156cf84d576f77849adcfcc2cd04f99 (diff)
downloadopenttd-8eced4450609f82893fbb534c794081b82fb19d4.tar.xz
(svn r8920) -Codechange: Do not require to press 'Apply changes' in the newgrf GUI if the changes in there are not activated (this happens in the title screen)
-rw-r--r--src/newgrf_gui.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/newgrf_gui.cpp b/src/newgrf_gui.cpp
index 6d5a78b89..54cbdd536 100644
--- a/src/newgrf_gui.cpp
+++ b/src/newgrf_gui.cpp
@@ -485,6 +485,9 @@ static void NewGRFWndProc(Window *w, WindowEvent *e)
break;
case WE_DESTROY:
+ if (!WP(w, newgrf_d).execute) {
+ CopyGRFConfigList(WP(w, newgrf_d).orig_list, *WP(w, newgrf_d).list);
+ }
/* Remove the temporary copy of grf-list used in window */
ClearGRFConfigList(WP(w, newgrf_d).list);
break;