X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fweapons%2Fhitplot.qc;h=e79e9ddb6413bb2b86e98e84e4e04793fa1ca5a5;hb=af43b181a15f348a4de2045b716ebc7765ce8f9f;hp=fb13bd1b9e126201de97ef73bf439f4119a6a97e;hpb=ae277921268b84c7b7ee5ab901ce7f0088c07605;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/weapons/hitplot.qc b/qcsrc/server/weapons/hitplot.qc index fb13bd1b9..e79e9ddb6 100644 --- a/qcsrc/server/weapons/hitplot.qc +++ b/qcsrc/server/weapons/hitplot.qc @@ -3,7 +3,6 @@ #include #include #include "../antilag.qh" -#include "../g_subs.qh" #include #include #include @@ -54,7 +53,7 @@ vector W_HitPlotNormalizedUntransform(vector org, entity targ, vector screenforw return ret; } -void W_HitPlotAnalysis(entity player, .entity weaponentity, vector screenforward, vector screenright, vector screenup) +void W_HitPlotAnalysis(entity player, entity wep, vector screenforward, vector screenright, vector screenup) { if(CS(player).hitplotfh >= 0) { @@ -72,7 +71,7 @@ void W_HitPlotAnalysis(entity player, .entity weaponentity, vector screenforward antilag_takeback(trace_ent, store, time - lag); vector hitplot = W_HitPlotNormalizedUntransform(org, trace_ent, screenforward, screenright, screenup, trace_endpos); antilag_restore(trace_ent, store); - fputs(CS(player).hitplotfh, strcat(ftos(hitplot.x), " ", ftos(hitplot.y), " ", ftos(hitplot.z), " ", ftos(player.(weaponentity).m_switchweapon.m_id), "\n")); + fputs(CS(player).hitplotfh, strcat(ftos(hitplot.x), " ", ftos(hitplot.y), " ", ftos(hitplot.z), " ", ftos(wep.m_id), "\n")); //print(strcat(ftos(hitplot_x), " ", ftos(hitplot_y), " ", ftos(hitplot_z), "\n")); } }