Mercurial > hg > openttd
diff src/newgrf_gui.cpp @ 9457:267a95510fdf draft
(svn r13375) -Add: logging of actions that could possibly cause desyncs and crashes to simplify debugging. See readme.txt for details
author | smatz <smatz@openttd.org> |
---|---|
date | Tue, 03 Jun 2008 18:35:58 +0000 (2008-06-03) |
parents | c399bf075b2f |
children | b53049484e44 |
line wrap: on
line diff
--- 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 @@ 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++) {}