summaryrefslogtreecommitdiff
path: root/src/am_map.c
diff options
context:
space:
mode:
authorSimon Howard2008-05-02 18:48:43 +0000
committerSimon Howard2008-05-02 18:48:43 +0000
commit3f54daeaa3acf590569cb397eee24731f7de6c17 (patch)
treeded285d0820cddae98b9e5c458f757c8c9ba3234 /src/am_map.c
parent6b1ac97d99599ed5e8d8557313237f3ebb102ead (diff)
downloadchocolate-doom-3f54daeaa3acf590569cb397eee24731f7de6c17.tar.gz
chocolate-doom-3f54daeaa3acf590569cb397eee24731f7de6c17.tar.bz2
chocolate-doom-3f54daeaa3acf590569cb397eee24731f7de6c17.zip
Add W_CacheLumpNum,Name API to WAD code for releasing a lump back to
cache when it is no longer needed. Switch existing code to use the new API instead of Z_ChangeTag. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1134
Diffstat (limited to 'src/am_map.c')
-rw-r--r--src/am_map.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/am_map.c b/src/am_map.c
index 41da0071..5fbe748a 100644
--- a/src/am_map.c
+++ b/src/am_map.c
@@ -525,10 +525,13 @@ void AM_loadPics(void)
void AM_unloadPics(void)
{
int i;
+ char namebuf[9];
for (i=0;i<10;i++)
- Z_ChangeTag(marknums[i], PU_CACHE);
-
+ {
+ sprintf(namebuf, DEH_String("AMMNUM%d"), i);
+ W_ReleaseLumpName(namebuf);
+ }
}
void AM_clearMarks(void)