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 40eca10..e744380 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)