[nexuiz-commits] r6702 - trunk/data/qcsrc/server

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Sun May 10 15:20:38 EDT 2009


Author: div0
Date: 2009-05-10 15:20:37 -0400 (Sun, 10 May 2009)
New Revision: 6702

Modified:
   trunk/data/qcsrc/server/cl_weaponsystem.qc
Log:
fix two bugs in hitplotting


Modified: trunk/data/qcsrc/server/cl_weaponsystem.qc
===================================================================
--- trunk/data/qcsrc/server/cl_weaponsystem.qc	2009-05-10 19:09:43 UTC (rev 6701)
+++ trunk/data/qcsrc/server/cl_weaponsystem.qc	2009-05-10 19:20:37 UTC (rev 6702)
@@ -46,8 +46,8 @@
 	for(i = 0; i < 2; ++i) for(j = 0; j < 2; ++j) for(k = 0; k < 2; ++k)
 	{
 		thisv = targ.origin;
-		if(i) thisv_x += targ.maxs_z; else thisv_x += targ.mins_x;
-		if(j) thisv_y += targ.maxs_z; else thisv_y += targ.mins_y;
+		if(i) thisv_x += targ.maxs_x; else thisv_x += targ.mins_x;
+		if(j) thisv_y += targ.maxs_y; else thisv_y += targ.mins_y;
 		if(k) thisv_z += targ.maxs_z; else thisv_z += targ.mins_z;
 		thisv = W_HitPlotUnnormalizedUntransform(screenforward, screenright, screenup, thisv);
 		if(i || j || k)
@@ -83,9 +83,9 @@
 		traceline_antilag_force(player, org, org + screenforward * MAX_SHOT_DISTANCE, MOVE_NORMAL, player, lag);
 		if(trace_ent.flags & FL_CLIENT)
 		{
-			antilag_takeback(player, time - lag);
+			antilag_takeback(trace_ent, time - lag);
 			hitplot = W_HitPlotNormalizedUntransform(org, trace_ent, screenforward, screenright, screenup, trace_endpos);
-			antilag_restore(player);
+			antilag_restore(trace_ent);
 			fputs(player.hitplotfh, strcat(ftos(hitplot_x), " ", ftos(hitplot_y), " ", ftos(hitplot_z), "\n"));
 		}
 	}



More information about the nexuiz-commits mailing list