From: havoc Date: Wed, 21 Aug 2002 09:23:43 +0000 (+0000) Subject: change default com_basedir to "." to fix the game when not using -basedir, oops.... X-Git-Tag: RELEASE_0_2_0_RC1~323 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=ea6759f42000b16a4c749bc02839e940c96e112d;p=xonotic%2Fdarkplaces.git change default com_basedir to "." to fix the game when not using -basedir, oops. thanks to Elric for the bug report. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2271 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/common.c b/common.c index 40eca10c..e744380c 100644 --- 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 // Overrides the system supplied base directory (under GAMENAME)