From 21f36c3fc2fdae157388276dcf6fb32f6745be64 Mon Sep 17 00:00:00 2001 From: div0 Date: Sun, 10 May 2009 19:20:37 +0000 Subject: [PATCH] fix two bugs in hitplotting git-svn-id: svn://svn.icculus.org/nexuiz/trunk@6702 f962a42d-fe04-0410-a3ab-8c8b0445ebaa --- data/qcsrc/server/cl_weaponsystem.qc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/data/qcsrc/server/cl_weaponsystem.qc b/data/qcsrc/server/cl_weaponsystem.qc index cc96755ef..ac53d9e2a 100644 --- a/data/qcsrc/server/cl_weaponsystem.qc +++ b/data/qcsrc/server/cl_weaponsystem.qc @@ -46,8 +46,8 @@ vector W_HitPlotNormalizedUntransform(vector org, entity targ, vector screenforw 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 @@ void W_HitPlotAnalysis(entity player, vector screenforward, vector screenright, 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")); } } -- 2.39.2