From: Rudolf Polzer <divverent@xonotic.org>
Date: Sat, 16 Feb 2013 21:00:15 +0000 (+0100)
Subject: add a "loadconfig" alias that mirrors "saveconfig" from the engine (idea by matthiaskrgr)
X-Git-Tag: xonotic-v0.7.0~84
X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=2fa15cdcb207001089b18ea2ff4f4594736b0eda;p=xonotic%2Fxonotic-data.pk3dir.git

add a "loadconfig" alias that mirrors "saveconfig" from the engine (idea by matthiaskrgr)
---

diff --git a/defaultXonotic.cfg b/defaultXonotic.cfg
index e3252bea5..8e9798c89 100644
--- a/defaultXonotic.cfg
+++ b/defaultXonotic.cfg
@@ -583,6 +583,7 @@ seta cl_announcer_maptime 3 "play announcer sound telling you the remaining mapt
 
 // startmap_dm is used when running with the -listen or -dedicated commandline options
 set serverconfig server.cfg
+alias loadconfig "cvar_resettodefaults_saveonly; exec ${* !}"
 set _sv_init 0
 alias startmap_dm "set _sv_init 0; map _init/_init; exec $serverconfig; set _sv_init 1"