1
0
Fork 0

(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)

release/0.6
Darkvater 2007-02-27 16:07:04 +00:00
parent c5e59b8a61
commit 8eced44506
1 changed files with 3 additions and 0 deletions

View File

@ -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;