From d2b871e7eac957b6f57a88dc125a026ba2abce31 Mon Sep 17 00:00:00 2001 From: TimePath Date: Sat, 28 May 2016 17:34:19 +1000 Subject: [PATCH] Remove the last SELFPARAM from client/ --- qcsrc/client/view.qc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/qcsrc/client/view.qc b/qcsrc/client/view.qc index 4696b5ef5..f96998592 100644 --- a/qcsrc/client/view.qc +++ b/qcsrc/client/view.qc @@ -922,9 +922,8 @@ LABEL(normalcolor) return wcross_color; } -void HUD_Crosshair() -{SELFPARAM(); - entity e = this; +void HUD_Crosshair(entity this) +{ float f, i, j; vector v; if(!scoreboard_active && !camera_active && intermission != 2 && @@ -981,6 +980,7 @@ void HUD_Crosshair() string wcross_name = ""; float wcross_scale, wcross_blur; + entity e = this; // wtf? if(autocvar_crosshair_per_weapon || (autocvar_crosshair_color_special == 1)) { e = switchingweapon; @@ -1307,7 +1307,7 @@ void HUD_Crosshair() } } -void HUD_Draw() +void HUD_Draw(entity this) { if(!intermission) if (MUTATOR_CALLHOOK(HUD_Draw_overlay)) @@ -1342,7 +1342,7 @@ void HUD_Draw() // crosshair goes VERY LAST UpdateDamage(); - HUD_Crosshair(); + HUD_Crosshair(this); HitSound(); } @@ -2171,7 +2171,7 @@ void CSQC_UpdateView(float w, float h) scoreboard_active = HUD_WouldDrawScoreboard(); - HUD_Draw(); + HUD_Draw(this); if(NextFrameCommand) { -- 2.39.2