]> git.xonotic.org Git - xonotic/netradiant.git/commitdiff
fix compile errors
authorRudolf Polzer <divverent@xonotic.org>
Sun, 15 May 2011 20:26:46 +0000 (22:26 +0200)
committerRudolf Polzer <divverent@xonotic.org>
Sun, 15 May 2011 20:26:46 +0000 (22:26 +0200)
tools/quake3/q3map2/path_init.c

index 3a12b49bcd3ac4599b98365a4c8ba4429d3f3b0e..4994c5f5712af05ac4fa3c7e967e97d86ecffaed 100644 (file)
@@ -62,9 +62,8 @@ PathLokiGetHomeDir()
 gets the user's home dir (for ~/.q3a)
 */
 
 gets the user's home dir (for ~/.q3a)
 */
 
-char *LokiGetHomeDir( qboolean *usedot )
+char *LokiGetHomeDir(void)
 {
 {
-       *usedot = qtrue;
        #ifndef Q_UNIX
                return NULL;
        #else
        #ifndef Q_UNIX
                return NULL;
        #else
@@ -108,10 +107,10 @@ initializes some paths on linux/os x
 
 void LokiInitPaths( char *argv0 )
 {
 
 void LokiInitPaths( char *argv0 )
 {
+       char            *home;
+
        if(!homePath)
        {
        if(!homePath)
        {
-               char            *home;
-
                /* get home dir */
                home = LokiGetHomeDir();
                if( home == NULL )
                /* get home dir */
                home = LokiGetHomeDir();
                if( home == NULL )
@@ -120,6 +119,8 @@ void LokiInitPaths( char *argv0 )
                /* set home path */
                homePath = home;
        }
                /* set home path */
                homePath = home;
        }
+       else
+               home = homePath;
 
        #ifndef Q_UNIX
                /* this is kinda crap, but hey */
 
        #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             i;
        char    temp[ MAX_OS_PATH ];
-       int l, homePathLen;
+       int homePathLen;
        
        if(!homePath)
                return;
        
        if(!homePath)
                return;
@@ -293,7 +294,7 @@ void AddHomeBasePath( char *path )
 
        /* strip leading dot, if homePath does not end in /. */
        homePathLen = strlen(homePath);
 
        /* 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);
        {
                /* -fs_homebase . means that -fs_home is to be used as is */
                strcpy(temp, homePath);