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;
}
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;