r4669 - in branches/nexuiz-2.0: . data/qcsrc/client

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Wed Oct 8 10:33:18 EDT 2008


Author: div0
Date: 2008-10-08 10:33:14 -0400 (Wed, 08 Oct 2008)
New Revision: 4669

Modified:
   branches/nexuiz-2.0/.patchsets
   branches/nexuiz-2.0/data/qcsrc/client/teamradar.qc
Log:
r4668 | div0 | 2008-10-08 16:31:25 +0200 (Wed, 08 Oct 2008) | 2 lines
add an engine check before using the MIPMAP flag

Modified: branches/nexuiz-2.0/.patchsets
===================================================================
--- branches/nexuiz-2.0/.patchsets	2008-10-08 14:31:25 UTC (rev 4668)
+++ branches/nexuiz-2.0/.patchsets	2008-10-08 14:33:14 UTC (rev 4669)
@@ -1,2 +1,2 @@
 master = svn://svn.icculus.org/nexuiz/trunk
-revisions_applied = 1-4666
+revisions_applied = 1-4668

Modified: branches/nexuiz-2.0/data/qcsrc/client/teamradar.qc
===================================================================
--- branches/nexuiz-2.0/data/qcsrc/client/teamradar.qc	2008-10-08 14:31:25 UTC (rev 4668)
+++ branches/nexuiz-2.0/data/qcsrc/client/teamradar.qc	2008-10-08 14:33:14 UTC (rev 4669)
@@ -55,7 +55,10 @@
 	R_PolygonVertex('1 0 0' * (teamradar_origin2d_x - teamradar_size2d_x * 0.5) + '0 1 0' * (teamradar_origin2d_y + teamradar_size2d_y * 0.5), '0 0 0', '0 0 0', a);
 	R_EndPolygon();
 
-	R_BeginPolygon(minimapname, DRAWFLAG_ADDITIVE | DRAWFLAG_MIPMAP);
+	if(csqc_flags & CSQC_FLAG_READPICTURE) // not 2.4.2
+		R_BeginPolygon(minimapname, DRAWFLAG_ADDITIVE | DRAWFLAG_MIPMAP);
+	else
+		R_BeginPolygon(minimapname, DRAWFLAG_ADDITIVE);
 	R_PolygonVertex(teamradar_texcoord_to_2dcoord(mi_pictexcoord0), yinvert(mi_pictexcoord0), '1 1 1', 1);
 	R_PolygonVertex(teamradar_texcoord_to_2dcoord(mi_pictexcoord1), yinvert(mi_pictexcoord1), '1 1 1', 1);
 	R_PolygonVertex(teamradar_texcoord_to_2dcoord(mi_pictexcoord2), yinvert(mi_pictexcoord2), '1 1 1', 1);




More information about the nexuiz-commits mailing list