From 717ca7f67c77b09c9fc6f36936fbc6bdc4ff8e98 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Fri, 26 Sep 2008 16:25:24 +0000 Subject: Fix up Heretic code for mmaped WAD I/O. Call W_ReleaseLump* instead of Z_Free/Z_ChangeTag. Subversion-branch: /branches/raven-branch Subversion-revision: 1288 --- src/heretic/p_setup.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/heretic/p_setup.c') diff --git a/src/heretic/p_setup.c b/src/heretic/p_setup.c index 78836f42..b1a4f2ce 100644 --- a/src/heretic/p_setup.c +++ b/src/heretic/p_setup.c @@ -95,7 +95,7 @@ void P_LoadVertexes(int lump) li->y = SHORT(ml->y) << FRACBITS; } - Z_Free(data); + W_ReleaseLumpNum(lump); } @@ -142,7 +142,7 @@ void P_LoadSegs(int lump) li->backsector = 0; } - Z_Free(data); + W_ReleaseLumpNum(lump); } @@ -174,7 +174,7 @@ void P_LoadSubsectors(int lump) ss->firstline = SHORT(ms->firstseg); } - Z_Free(data); + W_ReleaseLumpNum(lump); } @@ -212,7 +212,7 @@ void P_LoadSectors(int lump) ss->thinglist = NULL; } - Z_Free(data); + W_ReleaseLumpNum(lump); } @@ -251,7 +251,7 @@ void P_LoadNodes(int lump) } } - Z_Free(data); + W_ReleaseLumpNum(lump); } @@ -285,7 +285,7 @@ void P_LoadThings(int lump) P_SpawnMapThing(mt); } - Z_Free(data); + W_ReleaseLumpNum(lump); } @@ -367,7 +367,7 @@ void P_LoadLineDefs(int lump) ld->backsector = 0; } - Z_Free(data); + W_ReleaseLumpNum(lump); } @@ -403,7 +403,7 @@ void P_LoadSideDefs(int lump) sd->sector = §ors[SHORT(msd->sector)]; } - Z_Free(data); + W_ReleaseLumpNum(lump); } -- cgit v1.2.3