Skip to content

Commit

Permalink
Cleaning up some demo stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
atsb committed Apr 20, 2023
1 parent bc1defd commit 8e705b8
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/engine/g_demo.c
Original file line number Diff line number Diff line change
Expand Up @@ -341,18 +341,13 @@ int G_PlayDemoPtr(int skill, int map) // 800049D0

demobuffer = demo_p;

//demo_p = Z_Malloc(16000, PU_STATIC, NULL);

/* play demo game */
G_InitNew(skill, map);
G_DoLoadLevel();
demoplayback = true;
exit = D_MiniLoop(P_Start, P_Stop, P_Ticker, P_Drawer);
demoplayback = false;

/* free all tags except the PU_STATIC tag */
Z_FreeTags(PU_AUTO, ~PU_STATIC); // (PU_LEVEL | PU_LEVSPEC | PU_CACHE)

return exit;
}

Expand All @@ -366,7 +361,6 @@ int D_RunDemo(char* name, skill_t skill, int map) // 8002B2D0
lump = W_GetNumForName(name);
W_ReadLump(lump, demo_p);
exit = G_PlayDemoPtr(skill, map);
//Z_Free(demo_p);

return exit;
}

0 comments on commit 8e705b8

Please sign in to comment.