mirror of https://github.com/OpenTTD/OpenTTD
(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)
parent
c5e59b8a61
commit
8eced44506
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue