fix "ExpandPath called without qdir set" as qdir is never set in Xonotic/Nexuiz/any other nonquake
This commit is contained in:
parent
c34227108a
commit
4487b4d44f
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user