(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)
authorDarkvater
Tue, 27 Feb 2007 16:07:04 +0000
changeset 6492 a1cc60b7a844
parent 6491 f93251621d20
child 6493 da8b5609f110
(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)
src/newgrf_gui.cpp
--- a/src/newgrf_gui.cpp	Tue Feb 27 16:05:49 2007 +0000
+++ b/src/newgrf_gui.cpp	Tue Feb 27 16:07:04 2007 +0000
@@ -485,6 +485,9 @@
 			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;