[nexuiz-commits] r8093 - in trunk/data: . qcsrc/server
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Sun Oct 11 06:48:30 EDT 2009
Author: div0
Date: 2009-10-11 06:48:30 -0400 (Sun, 11 Oct 2009)
New Revision: 8093
Modified:
trunk/data/defaultNexuiz.cfg
trunk/data/qcsrc/server/g_world.qc
Log:
rescan_pendign cvar (to schedule a fs_rescan later)
Modified: trunk/data/defaultNexuiz.cfg
===================================================================
--- trunk/data/defaultNexuiz.cfg 2009-10-11 10:47:37 UTC (rev 8092)
+++ trunk/data/defaultNexuiz.cfg 2009-10-11 10:48:30 UTC (rev 8093)
@@ -1654,3 +1654,5 @@
seta cl_noantilag 0 "turn this on if you believe antilag is bad"
r_shadow_shadowmapping 1
+
+set rescan_pending 0 "set to 1 to schedule a fs_rescan at the end of this match"
Modified: trunk/data/qcsrc/server/g_world.qc
===================================================================
--- trunk/data/qcsrc/server/g_world.qc 2009-10-11 10:47:37 UTC (rev 8092)
+++ trunk/data/qcsrc/server/g_world.qc 2009-10-11 10:48:30 UTC (rev 8093)
@@ -2477,6 +2477,26 @@
if(!mapvote_initialized)
{
+ if(cvar("rescan_pending") == 1)
+ {
+ cvar_set("rescan_pending", "2");
+ localcmd("fs_rescan\nrescan_pending 3\n");
+ return;
+ }
+ else if(cvar("rescan_pending") == 2)
+ {
+ return;
+ }
+ else if(cvar("rescan_pending") == 3)
+ {
+ // now build missing mapinfo files
+ if(!MapInfo_FilterGametype(MapInfo_CurrentGametype(), MapInfo_CurrentFeatures(), MapInfo_RequiredFlags(), MapInfo_ForbiddenFlags(), 1))
+ return;
+
+ // we're done, start the timer
+ cvar_set("rescan_pending", "0");
+ }
+
mapvote_initialized = TRUE;
if(DoNextMapOverride())
return;
More information about the nexuiz-commits
mailing list