summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Howard2007-08-06 04:48:55 +0000
committerSimon Howard2007-08-06 04:48:55 +0000
commit69cd2345e29316f8bfb247b2f1f97c4076b47d27 (patch)
tree77f6991af80707a4e0618559140a45e9ea057ae2
parent770fb3d7c7c23bc9b101ebbf314b142a440f6637 (diff)
downloadchocolate-doom-69cd2345e29316f8bfb247b2f1f97c4076b47d27.tar.gz
chocolate-doom-69cd2345e29316f8bfb247b2f1f97c4076b47d27.tar.bz2
chocolate-doom-69cd2345e29316f8bfb247b2f1f97c4076b47d27.zip
Remove duplicate FileExists function.
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 944
-rw-r--r--src/m_misc.c19
1 files changed, 1 insertions, 18 deletions
diff --git a/src/m_misc.c b/src/m_misc.c
index 0b11e786..d5bdc5cf 100644
--- a/src/m_misc.c
+++ b/src/m_misc.c
@@ -875,23 +875,6 @@ WritePCXfile
Z_Free (pcx);
}
-static boolean FileExists(char *filename)
-{
- FILE *handle;
-
- handle = fopen(filename, "rb");
-
- if (handle != NULL)
- {
- fclose(handle);
- return true;
- }
- else
- {
- return false;
- }
-}
-
//
// M_ScreenShot
//
@@ -912,7 +895,7 @@ void M_ScreenShot (void)
{
lbmname[4] = i/10 + '0';
lbmname[5] = i%10 + '0';
- if (!FileExists(lbmname))
+ if (!M_FileExists(lbmname))
break; // file doesn't exist
}
if (i==100)