r4171 - trunk/data/qcsrc/client
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Sun Aug 24 11:11:47 EDT 2008
Author: div0
Date: 2008-08-24 11:11:32 -0400 (Sun, 24 Aug 2008)
New Revision: 4171
Modified:
trunk/data/qcsrc/client/hook.qc
Log:
use particles/hookbeam only in new engines - looks slightly better in old ones
Modified: trunk/data/qcsrc/client/hook.qc
===================================================================
--- trunk/data/qcsrc/client/hook.qc 2008-08-24 15:02:38 UTC (rev 4170)
+++ trunk/data/qcsrc/client/hook.qc 2008-08-24 15:11:32 UTC (rev 4171)
@@ -47,11 +47,14 @@
C = to + thickdir * (thickness / 2);
D = to - thickdir * (thickness / 2);
- R_BeginPolygon("particles/hookbeam", 0);
- R_PolygonVertex(A, '0 0 0', '.5 1 0', 1);
- R_PolygonVertex(B, '1 0 0', '.5 1 0', 1);
- R_PolygonVertex(C, '1 0 0' + length_tex * '0 1 0', '.5 1 0', 1);
- R_PolygonVertex(D, '0 0 0' + length_tex * '0 1 0', '.5 1 0', 1);
+ if(checkextension("DP_SV_WRITEPICTURE"))
+ R_BeginPolygon("particles/hookbeam", 0);
+ else
+ R_BeginPolygon("", 0);
+ R_PolygonVertex(A, '0 0 0', '.5 1 0', 1);
+ R_PolygonVertex(B, '1 0 0', '.5 1 0', 1);
+ R_PolygonVertex(C, '1 0 0' + length_tex * '0 1 0', '.5 1 0', 1);
+ R_PolygonVertex(D, '0 0 0' + length_tex * '0 1 0', '.5 1 0', 1);
R_EndPolygon();
}
More information about the nexuiz-commits
mailing list