]> de.git.xonotic.org Git - xonotic/netradiant.git/commitdiff
ncrease MAX_MAP_VISIBILITY
authordivverent <divverent@61c419a2-8eb2-4b30-bcec-8cead039b335>
Tue, 21 Apr 2009 14:50:45 +0000 (14:50 +0000)
committerdivverent <divverent@61c419a2-8eb2-4b30-bcec-8cead039b335>
Tue, 21 Apr 2009 14:50:45 +0000 (14:50 +0000)
git-svn-id: svn://svn.icculus.org/netradiant/trunk@323 61c419a2-8eb2-4b30-bcec-8cead039b335

tools/quake3/q3map2/q3map2.h

index fb723ead934c25cd4ed998e0f48c070e183981c3..fe25f5821abf8cb46df8d069ff361295ea79d95a 100644 (file)
@@ -316,7 +316,8 @@ abstracted bsp file
 #define        MAX_MAP_PORTALS                 0x20000
 #define        MAX_MAP_LIGHTING                0x800000
 #define        MAX_MAP_LIGHTGRID               0x100000        //%     0x800000 /* ydnar: set to points, not bytes */
-#define        MAX_MAP_VISIBILITY              0x200000
+#define MAX_MAP_VISCLUSTERS     0x4000 // <= MAX_MAP_LEAFS
+#define        MAX_MAP_VISIBILITY              (VIS_HEADER_SIZE + MAX_MAP_VISCLUSTERS * (((MAX_MAP_VISCLUSTERS + 63) & ~63) >> 3))
 
 #define        MAX_MAP_DRAW_SURFS              0x20000
 #define        MAX_MAP_DRAW_INDEXES    0x80000