]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
don't crash Xonotic 0.6.0 release by using checkpvs on client (it's broken)
authorRudolf Polzer <divverent@xonotic.org>
Sun, 18 Mar 2012 21:22:57 +0000 (22:22 +0100)
committerRudolf Polzer <divverent@xonotic.org>
Sun, 18 Mar 2012 21:22:57 +0000 (22:22 +0100)
qcsrc/common/util-pre.qh
qcsrc/warpzonelib/client.qc

index 518a5698d3aead0d6b4fe0a98bce583e89f7f92d..b65193d44ce26e6341b042b09c24c6283cf1da59 100644 (file)
@@ -6,4 +6,6 @@
 //# define COMPAT_XON010_CHANNELS
 # define COMPAT_XON050_ENGINE
 # define COMPAT_NO_MOD_IS_XONOTIC
+# define COMPAT_XON060_DONTCRASH_CHECKPVS
 #endif
+
index 84bfe7b96d9c7ab7e8da6041d4ba3ec74bb6bcd1..6f75612343c32504af52c437cf3186a08515c114 100644 (file)
@@ -2,7 +2,12 @@ void WarpZone_Fade_PreDraw()
 {
        vector org;
        org = getpropertyvec(VF_ORIGIN);
-       if(!checkpvs(org, self)) // this makes sense as long as we don't support recursive warpzones
+       if(
+#ifdef COMPAT_XON060_DONTCRASH_CHECKPVS
+               cvar_string("g_xonoticversion") != "0.5.0" &&
+               cvar_string("g_xonoticversion") != "0.6.0" &&
+#endif
+               !checkpvs(org, self)) // this makes sense as long as we don't support recursive warpzones
                self.alpha = 0;
        else if(self.warpzone_fadestart)
                self.alpha = bound(0, (self.warpzone_fadeend - vlen(org - self.origin - 0.5 * (self.mins + self.maxs))) / (self.warpzone_fadeend - self.warpzone_fadestart), 1);