From bb9ceef0a9b9af7ef83a72bf8a69293227d2db53 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Thu, 9 Oct 2008 18:46:10 +0000 Subject: Replace Z_ChangeTag/Z_Free usage with W_ReleaseLump* Subversion-branch: /branches/raven-branch Subversion-revision: 1346 --- src/hexen/p_setup.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/hexen/p_setup.c') diff --git a/src/hexen/p_setup.c b/src/hexen/p_setup.c index 34f39485..695c262e 100644 --- a/src/hexen/p_setup.c +++ b/src/hexen/p_setup.c @@ -186,7 +186,7 @@ void P_LoadVertexes(int lump) li->y = SHORT(ml->y) << FRACBITS; } - Z_Free(data); + W_ReleaseLumpNum(lump); } @@ -233,7 +233,7 @@ void P_LoadSegs(int lump) li->backsector = 0; } - Z_Free(data); + W_ReleaseLumpNum(lump); } @@ -265,7 +265,7 @@ void P_LoadSubsectors(int lump) ss->firstline = SHORT(ms->firstseg); } - Z_Free(data); + W_ReleaseLumpNum(lump); } @@ -304,7 +304,7 @@ void P_LoadSectors(int lump) ss->thinglist = NULL; ss->seqType = SEQTYPE_STONE; // default seqType } - Z_Free(data); + W_ReleaseLumpNum(lump); } @@ -342,7 +342,7 @@ void P_LoadNodes(int lump) no->bbox[j][k] = SHORT(mn->bbox[j][k]) << FRACBITS; } } - Z_Free(data); + W_ReleaseLumpNum(lump); } //========================================================================== @@ -377,7 +377,7 @@ void P_LoadThings(int lump) } P_CreateTIDList(); P_InitCreatureCorpseQueue(false); // false = do NOT scan for corpses - Z_Free(data); + W_ReleaseLumpNum(lump); if (!deathmatch) { // Don't need to check deathmatch spots @@ -483,7 +483,7 @@ void P_LoadLineDefs(int lump) ld->backsector = 0; } - Z_Free(data); + W_ReleaseLumpNum(lump); } @@ -519,7 +519,7 @@ void P_LoadSideDefs(int lump) sd->midtexture = R_TextureNumForName(msd->midtexture); sd->sector = §ors[SHORT(msd->sector)]; } - Z_Free(data); + W_ReleaseLumpNum(lump); } /* -- cgit v1.2.3