mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-27 00:19:09 +00:00
(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)
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user