diff options
author | Simon Howard | 2008-09-26 16:25:24 +0000 |
---|---|---|
committer | Simon Howard | 2008-09-26 16:25:24 +0000 |
commit | 717ca7f67c77b09c9fc6f36936fbc6bdc4ff8e98 (patch) | |
tree | 06c0f946caa74c724ecb3f90e43af7ab049f009e /src/heretic/p_setup.c | |
parent | 2fb5056878a2d5a29d8bb9597e2f458b46862ddd (diff) | |
download | chocolate-doom-717ca7f67c77b09c9fc6f36936fbc6bdc4ff8e98.tar.gz chocolate-doom-717ca7f67c77b09c9fc6f36936fbc6bdc4ff8e98.tar.bz2 chocolate-doom-717ca7f67c77b09c9fc6f36936fbc6bdc4ff8e98.zip |
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
Diffstat (limited to 'src/heretic/p_setup.c')
-rw-r--r-- | src/heretic/p_setup.c | 16 |
1 files changed, 8 insertions, 8 deletions
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); } |