forked from mirror/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)
This commit is contained in:
@@ -485,6 +485,9 @@ static void NewGRFWndProc(Window *w, WindowEvent *e)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case WE_DESTROY:
|
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 */
|
/* Remove the temporary copy of grf-list used in window */
|
||||||
ClearGRFConfigList(WP(w, newgrf_d).list);
|
ClearGRFConfigList(WP(w, newgrf_d).list);
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user