summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)