From f00bc875900c0e2ce5d11713e479d677f22f8e64 Mon Sep 17 00:00:00 2001 From: Holger Zickner Date: Tue, 28 Jun 2005 08:41:19 +0000 Subject: do not overwrite baseq2 dir --- src/jake2/qcommon/Qcommon.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/jake2/qcommon/Qcommon.java') 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); } } -- cgit v1.2.3