diff options
author | smatz <smatz@openttd.org> | 2008-06-03 18:35:58 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2008-06-03 18:35:58 +0000 |
commit | 1f55797fe3c75ec61ea69e6fa38ca2e4d817d30e (patch) | |
tree | 72b7d141fd63dcb880f610a334390bf9c41f97b1 /src/newgrf_gui.cpp | |
parent | 1b7fcf0171ab4bc39b6cbb6b144ab7433f72ce1e (diff) | |
download | openttd-1f55797fe3c75ec61ea69e6fa38ca2e4d817d30e.tar.xz |
(svn r13375) -Add: logging of actions that could possibly cause desyncs and crashes to simplify debugging. See readme.txt for details
Diffstat (limited to 'src/newgrf_gui.cpp')
-rw-r--r-- | src/newgrf_gui.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/newgrf_gui.cpp b/src/newgrf_gui.cpp index 70b0ac6b8..4b4765fe2 100644 --- a/src/newgrf_gui.cpp +++ b/src/newgrf_gui.cpp @@ -15,6 +15,7 @@ #include "core/alloc_func.hpp" #include "string_func.h" #include "gfx_func.h" +#include "gamelog.h" #include "table/strings.h" #include "table/sprites.h" @@ -564,8 +565,11 @@ static void NewGRFConfirmationCallback(Window *w, bool confirmed) GRFConfig *c; int i = 0; + GamelogStartAction(GLAT_GRF); + GamelogGRFUpdate(_grfconfig, nw->list); // log GRF changes CopyGRFConfigList(nw->orig_list, nw->list, false); ReloadNewGRFData(); + GamelogStopAction(); /* Show new, updated list */ for (c = nw->list; c != NULL && c != nw->sel; c = c->next, i++) {} |