diff options
author | Holger Zickner <[email protected]> | 2005-06-28 08:41:19 +0000 |
---|---|---|
committer | Holger Zickner <[email protected]> | 2005-06-28 08:41:19 +0000 |
commit | f00bc875900c0e2ce5d11713e479d677f22f8e64 (patch) | |
tree | f3427d7df60a7ec6134673a578d742c474f3b5fc /src/jake2 | |
parent | 8152c76bb386e3a52f1ea99d643e2862e4762a98 (diff) |
do not overwrite baseq2 dir
Diffstat (limited to 'src/jake2')
-rw-r--r-- | src/jake2/qcommon/Qcommon.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/jake2/qcommon/Qcommon.java b/src/jake2/qcommon/Qcommon.java index 1035b73..9041a04 100644 --- a/src/jake2/qcommon/Qcommon.java +++ b/src/jake2/qcommon/Qcommon.java @@ -2,7 +2,7 @@ * Qcommon.java * Copyright 2003 * - * $Id: Qcommon.java,v 1.17 2005-05-26 16:56:32 hzi Exp $ + * $Id: Qcommon.java,v 1.18 2005-06-28 08:41:19 hzi Exp $ */ /* Copyright (C) 1997-2001 Id Software, Inc. @@ -243,6 +243,7 @@ public final class Qcommon extends Globals { } static void reconfigure(boolean clear) { + String dir = Cvar.Get("cddir", "", CVAR_ARCHIVE).string; Cbuf.AddText("exec default.cfg\n"); Cbuf.AddText("bind MWHEELUP weapnext\n"); Cbuf.AddText("bind MWHEELDOWN weapprev\n"); @@ -255,6 +256,7 @@ public final class Qcommon extends Globals { Cbuf.AddText("exec config.cfg\n"); Cbuf.AddEarlyCommands(clear); - Cbuf.Execute(); + Cbuf.Execute(); + if (!("".equals(dir))) Cvar.Set("cddir", dir); } } |