r4668 - trunk/data/qcsrc/client
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Wed Oct 8 10:31:25 EDT 2008
Author: div0
Date: 2008-10-08 10:31:25 -0400 (Wed, 08 Oct 2008)
New Revision: 4668
Modified:
trunk/data/qcsrc/client/teamradar.qc
Log:
add an engine check before using the MIPMAP flag
Modified: trunk/data/qcsrc/client/teamradar.qc
===================================================================
--- trunk/data/qcsrc/client/teamradar.qc 2008-10-08 14:10:09 UTC (rev 4667)
+++ trunk/data/qcsrc/client/teamradar.qc 2008-10-08 14:31:25 UTC (rev 4668)
@@ -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