From 4b12735cd6da971eb89608cdb86750d96f1074b1 Mon Sep 17 00:00:00 2001 From: Carsten Weisse Date: Thu, 28 Oct 2004 21:09:11 +0000 Subject: a call to markBaseSearchPaths() is necessary if setCDDir() is called outside the init sequence; also string compare bug fixed --- src/jake2/qcommon/FS.java | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'src/jake2/qcommon') diff --git a/src/jake2/qcommon/FS.java b/src/jake2/qcommon/FS.java index 434bd97..0e6aa90 100644 --- a/src/jake2/qcommon/FS.java +++ b/src/jake2/qcommon/FS.java @@ -2,7 +2,7 @@ * FS.java * Copyright (C) 2003 * - * $Id: FS.java,v 1.10 2004-10-25 21:57:48 cawe Exp $ + * $Id: FS.java,v 1.11 2004-10-28 21:09:11 cawe Exp $ */ /* Copyright (C) 1997-2001 Id Software, Inc. @@ -715,7 +715,7 @@ public final class FS extends Globals { fs_gamedir = fs_basedir.string + '/' + dir; - if (!dir.equals(Globals.BASEDIRNAME) || (dir.length() == 0)) { + if (dir.equals(Globals.BASEDIRNAME) || (dir.length() == 0)) { Cvar.FullSet("gamedir", "", CVAR_SERVERINFO | CVAR_NOSET); Cvar.FullSet("game", "", CVAR_LATCH | CVAR_SERVERINFO); } else { @@ -921,7 +921,7 @@ public final class FS extends Globals { AddGameDirectory(fs_basedir.string + '/' + Globals.BASEDIRNAME); // any set gamedirs will be freed up to here - fs_base_searchpaths = fs_searchpaths; + markBaseSearchPaths(); // check for game override fs_gamedirvar = Cvar.Get("game", "", CVAR_LATCH | CVAR_SERVERINFO); @@ -938,6 +938,11 @@ public final class FS extends Globals { if (fs_cddir.string.length() > 0) AddGameDirectory(fs_cddir.string); } + + static void markBaseSearchPaths() { + // any set gamedirs will be freed up to here + fs_base_searchpaths = fs_searchpaths; + } // RAFAEL /* -- cgit v1.2.3