]> de.git.xonotic.org Git - xonotic/netradiant.git/commitdiff
fix "ExpandPath called without qdir set" as qdir is never set in Xonotic/Nexuiz/any...
authorRudolf Polzer <divverent@alientrap.org>
Tue, 5 Oct 2010 09:24:42 +0000 (11:24 +0200)
committerRudolf Polzer <divverent@alientrap.org>
Tue, 5 Oct 2010 09:24:42 +0000 (11:24 +0200)
tools/quake3/common/cmdlib.c

index 4e84b207df19381a28c585155e019e92c994827d..fac9bdbbd546d9d673f280d952802f48178423d3 100644 (file)
@@ -250,9 +250,7 @@ char *ExpandArg (const char *path)
 char *ExpandPath (const char *path)
 {
        static char full[1024];
-       if (!*qdir)
-               Error ("ExpandPath called without qdir set");
-       if (path[0] == '/' || path[0] == '\\' || path[1] == ':') {
+       if (!*qdir || path[0] == '/' || path[0] == '\\' || path[1] == ':') {
                strcpy( full, path );
                return full;
        }
@@ -263,8 +261,8 @@ char *ExpandPath (const char *path)
 char *ExpandGamePath (const char *path)
 {
        static char full[1024];
-       if (!*qdir)
-               Error ("ExpandGamePath called without qdir set");
+       if (!*gamedir)
+               Error ("ExpandGamePath called without gamedir set");
        if (path[0] == '/' || path[0] == '\\' || path[1] == ':') {
                strcpy( full, path );
                return full;