From: Rudolf Polzer Date: Sun, 15 May 2011 20:26:46 +0000 (+0200) Subject: fix compile errors X-Git-Tag: xonotic-v0.5.0~26 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=865fc23ebfb4590e090e8156e830657008ca4f44;p=xonotic%2Fnetradiant.git fix compile errors --- diff --git a/tools/quake3/q3map2/path_init.c b/tools/quake3/q3map2/path_init.c index 3a12b49b..4994c5f5 100644 --- a/tools/quake3/q3map2/path_init.c +++ b/tools/quake3/q3map2/path_init.c @@ -62,9 +62,8 @@ PathLokiGetHomeDir() gets the user's home dir (for ~/.q3a) */ -char *LokiGetHomeDir( qboolean *usedot ) +char *LokiGetHomeDir(void) { - *usedot = qtrue; #ifndef Q_UNIX return NULL; #else @@ -108,10 +107,10 @@ initializes some paths on linux/os x void LokiInitPaths( char *argv0 ) { + char *home; + if(!homePath) { - char *home; - /* get home dir */ home = LokiGetHomeDir(); if( home == NULL ) @@ -120,6 +119,8 @@ void LokiInitPaths( char *argv0 ) /* set home path */ homePath = home; } + else + home = homePath; #ifndef Q_UNIX /* this is kinda crap, but hey */ @@ -282,7 +283,7 @@ void AddHomeBasePath( char *path ) { int i; char temp[ MAX_OS_PATH ]; - int l, homePathLen; + int homePathLen; if(!homePath) return; @@ -293,7 +294,7 @@ void AddHomeBasePath( char *path ) /* strip leading dot, if homePath does not end in /. */ homePathLen = strlen(homePath); - if(!strcmp(path, ".") + if(!strcmp(path, ".")) { /* -fs_homebase . means that -fs_home is to be used as is */ strcpy(temp, homePath);