Codechange: Place gamelog into its own class, along with internal data.
Data is now stored in vectors to avoid manual memory management and passing lengths around.
This commit is contained in:
@@ -1964,11 +1964,11 @@ static void NewGRFConfirmationCallback(Window *w, bool confirmed)
|
||||
CloseWindowByClass(WC_TEXTFILE);
|
||||
NewGRFWindow *nw = dynamic_cast<NewGRFWindow*>(w);
|
||||
|
||||
GamelogStartAction(GLAT_GRF);
|
||||
GamelogGRFUpdate(_grfconfig, nw->actives); // log GRF changes
|
||||
_gamelog.StartAction(GLAT_GRF);
|
||||
_gamelog.GRFUpdate(_grfconfig, nw->actives); // log GRF changes
|
||||
CopyGRFConfigList(nw->orig_list, nw->actives, false);
|
||||
ReloadNewGRFData();
|
||||
GamelogStopAction();
|
||||
_gamelog.StopAction();
|
||||
|
||||
/* Show new, updated list */
|
||||
GRFConfig *c;
|
||||
|
Reference in New Issue
Block a user