equal
deleted
inserted
replaced
13 #include "strings_func.h" |
13 #include "strings_func.h" |
14 #include "window_func.h" |
14 #include "window_func.h" |
15 #include "core/alloc_func.hpp" |
15 #include "core/alloc_func.hpp" |
16 #include "string_func.h" |
16 #include "string_func.h" |
17 #include "gfx_func.h" |
17 #include "gfx_func.h" |
|
18 #include "gamelog.h" |
18 |
19 |
19 #include "table/strings.h" |
20 #include "table/strings.h" |
20 #include "table/sprites.h" |
21 #include "table/sprites.h" |
21 |
22 |
22 /** Parse an integerlist string and set each found value |
23 /** Parse an integerlist string and set each found value |
562 if (confirmed) { |
563 if (confirmed) { |
563 NewGRFWindow *nw = dynamic_cast<NewGRFWindow*>(w); |
564 NewGRFWindow *nw = dynamic_cast<NewGRFWindow*>(w); |
564 GRFConfig *c; |
565 GRFConfig *c; |
565 int i = 0; |
566 int i = 0; |
566 |
567 |
|
568 GamelogStartAction(GLAT_GRF); |
|
569 GamelogGRFUpdate(_grfconfig, nw->list); // log GRF changes |
567 CopyGRFConfigList(nw->orig_list, nw->list, false); |
570 CopyGRFConfigList(nw->orig_list, nw->list, false); |
568 ReloadNewGRFData(); |
571 ReloadNewGRFData(); |
|
572 GamelogStopAction(); |
569 |
573 |
570 /* Show new, updated list */ |
574 /* Show new, updated list */ |
571 for (c = nw->list; c != NULL && c != nw->sel; c = c->next, i++) {} |
575 for (c = nw->list; c != NULL && c != nw->sel; c = c->next, i++) {} |
572 CopyGRFConfigList(&nw->list, *nw->orig_list, false); |
576 CopyGRFConfigList(&nw->list, *nw->orig_list, false); |
573 for (c = nw->list; c != NULL && i > 0; c = c->next, i--) {} |
577 for (c = nw->list; c != NULL && i > 0; c = c->next, i--) {} |