]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/g_world.qc
Automatically detect .defi files and enable VQ3 compat at match start, not while...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / g_world.qc
index f739533fc8b9abf20732fc7da4b9ed3810edf083..80ecd2a31333ea2998cf14027de9150b42067ddc 100644 (file)
@@ -872,6 +872,9 @@ spawnfunc(worldspawn)
        MapInfo_Enumerate();
        MapInfo_FilterGametype(MapInfo_CurrentGametype(), MapInfo_CurrentFeatures(), MapInfo_RequiredFlags(), MapInfo_ForbiddenFlags(), 1);
 
+       if(fexists(strcat("scripts/", mapname, ".defi")))
+               cvar_settemp("sv_vq3compat", "1");
+
        if(whichpack(strcat("maps/", mapname, ".cfg")) != "")
        {
                int fd = fopen(strcat("maps/", mapname, ".cfg"), FILE_READ);