summaryrefslogtreecommitdiff
path: root/src/hexen/p_setup.c
diff options
context:
space:
mode:
authorSimon Howard2008-10-09 18:46:10 +0000
committerSimon Howard2008-10-09 18:46:10 +0000
commitbb9ceef0a9b9af7ef83a72bf8a69293227d2db53 (patch)
treeacb57f7a26fc463aaac21a0e2ce044b9383bb9e4 /src/hexen/p_setup.c
parent9736ada9a68709c1aea0093aef12f2855d152b2c (diff)
downloadchocolate-doom-bb9ceef0a9b9af7ef83a72bf8a69293227d2db53.tar.gz
chocolate-doom-bb9ceef0a9b9af7ef83a72bf8a69293227d2db53.tar.bz2
chocolate-doom-bb9ceef0a9b9af7ef83a72bf8a69293227d2db53.zip
Replace Z_ChangeTag/Z_Free usage with W_ReleaseLump*
Subversion-branch: /branches/raven-branch Subversion-revision: 1346
Diffstat (limited to 'src/hexen/p_setup.c')
-rw-r--r--src/hexen/p_setup.c16
1 files changed, 8 insertions, 8 deletions
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 = &sectors[SHORT(msd->sector)];
}
- Z_Free(data);
+ W_ReleaseLumpNum(lump);
}
/*