]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/lib/file.qh
Optimize vehicle impact code by only calling vlen() if damage would be taken
[xonotic/xonotic-data.pk3dir.git] / qcsrc / lib / file.qh
index f732bfe2c1c53e3d2922a6b3e744cf5c30148ef8..5bc24f627185f5fd5c4bf87aaaf32a40f0908ff8 100644 (file)
@@ -1,13 +1,10 @@
-#ifndef FILE_H
-#define FILE_H
+#pragma once
 
+ERASEABLE
 bool fexists(string f)
 {
-    int fh = fopen(f, FILE_READ);
-    if (fh < 0)
-        return false;
-    fclose(fh);
-    return true;
+       int fh = fopen(f, FILE_READ);
+       if (fh < 0) return false;
+       fclose(fh);
+       return true;
 }
-
-#endif