]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
hopefully fix external file gzip support
authortaniwha <taniwha@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 3 Jun 2001 03:18:25 +0000 (03:18 +0000)
committertaniwha <taniwha@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 3 Jun 2001 03:18:25 +0000 (03:18 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@228 d7cf8633-e32d-0410-b094-e92efae38249

common.c

index 56d7f5ee031376fc8aa8ac195d2aeaa703f88d82..a39cc5e512e57f592a01c865ed405b603f63d671 100644 (file)
--- a/common.c
+++ b/common.c
@@ -1598,7 +1598,12 @@ int COM_FindFile (char *filename, QFile **file, qboolean quiet, qboolean zip)
                        
                        findtime = Sys_FileTime (netpath);
                        if (findtime == -1)
-                               continue;
+                       {
+                               sprintf (netpath, "%s/%s",search->filename, gzfilename);
+                               findtime = Sys_FileTime (netpath);
+                               if (findtime == -1)
+                                       continue;
+                       }
                                
 #if CACHEENABLE
                        // see if the file needs to be updated in the cache