]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
change default com_basedir to "." to fix the game when not using -basedir, oops....
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 21 Aug 2002 09:23:43 +0000 (09:23 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 21 Aug 2002 09:23:43 +0000 (09:23 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2271 d7cf8633-e32d-0410-b094-e92efae38249

common.c

index 40eca10ca9aa9aa7a6ebf0b841305e886504aeb0..e744380c82d4f6fbbdd9c1739c87554389a3a5cf 100644 (file)
--- a/common.c
+++ b/common.c
@@ -510,8 +510,6 @@ void COM_StripExtension (char *in, char *out)
        }
        if (last)
                *last = 0;
-       else
-               *out = 0;
 }
 
 /*
@@ -1398,7 +1396,7 @@ void COM_InitFilesystem (void)
        int i;
        searchpath_t *search;
 
-       strcpy(com_basedir, "");
+       strcpy(com_basedir, ".");
 
        // -basedir <path>
        // Overrides the system supplied base directory (under GAMENAME)