From 3a30fad183d1f71e126231d00a11f10a4a125f6c Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Wed, 27 Oct 2010 21:21:24 +0200 Subject: [PATCH] fix more warnings --- qcsrc/client/View.qc | 2 +- qcsrc/client/hook.qc | 3 +-- qcsrc/client/hud.qc | 16 +++++----------- qcsrc/client/wall.qc | 1 - 4 files changed, 7 insertions(+), 15 deletions(-) diff --git a/qcsrc/client/View.qc b/qcsrc/client/View.qc index 25bde8975..39f0586b1 100644 --- a/qcsrc/client/View.qc +++ b/qcsrc/client/View.qc @@ -1074,7 +1074,7 @@ void CSQC_SPIDER_HUD() void CSQC_RAPTOR_HUD() { - float rockets, reload, heat, hp, shield, energy; + float reload, hp, shield, energy; vector picsize, hudloc; // Fetch health & ammo stats diff --git a/qcsrc/client/hook.qc b/qcsrc/client/hook.qc index c1e8383aa..cb2d7f356 100644 --- a/qcsrc/client/hook.qc +++ b/qcsrc/client/hook.qc @@ -1,7 +1,6 @@ .float HookType; // ENT_CLIENT_* .vector origin; .vector velocity; -.float HookSound; .float HookSilent; .float HookRange; @@ -57,7 +56,7 @@ void Draw_GrapplingHook_trace_callback(vector start, vector hit, vector end) void Draw_GrapplingHook() { vector a, b, atrans; - string tex, snd; + string tex; vector rgb; float t; float s; diff --git a/qcsrc/client/hud.qc b/qcsrc/client/hud.qc index 4272aefbb..8ddcd25eb 100644 --- a/qcsrc/client/hud.qc +++ b/qcsrc/client/hud.qc @@ -596,8 +596,6 @@ vector HUD_Panel_CheckMove(vector myPos, vector mySize) vector myTarget; myTarget = myPos; - vector targPos; - vector targSize; vector myCenter; vector targCenter; myCenter = '0 0 0'; // shut up fteqcc, there IS a reference @@ -697,12 +695,9 @@ void HUD_Panel_SetPos(vector pos) vector HUD_Panel_CheckResize(vector mySize, vector resizeorigin) { float i; - float targBorder; - vector targPos; - vector targSize; vector targEndPos; - vector dist; + float dist_x, dist_y; float ratio; ratio = mySize_x/mySize_y; @@ -1415,7 +1410,6 @@ void HUD_Panel_Mouse() highlightcheck = HUD_Panel_HighlightCheck(); } // draw cursor after performing move/resize to have the panel pos/size updated before highlightcheck - string cursor; vector cursorsize; cursorsize = '32 32 0'; @@ -1496,7 +1490,7 @@ float GetAmmoTypeForWep(float i) void HUD_Weapons(void) { float f, screen_ar; - vector center; + float center_x, center_y; if(!autocvar_hud_panel_weapons && !autocvar__hud_configure) return; @@ -1737,8 +1731,7 @@ void HUD_Weapons(void) default: fullammo = 60; } - vector barsize; - vector barpos; + float barsize_x, barsize_y, barpos_x, barpos_y; if(wpnsize_x/wpnsize_y > autocvar_hud_panel_weapons_aspect) { barsize_x = autocvar_hud_panel_weapons_aspect * wpnsize_y; @@ -1964,7 +1957,8 @@ void HUD_Ammo(void) void DrawNumIcon(float iconalign, vector myPos, vector mySize, float x, string icon, float left, vector color, float alpha) { - vector newSize, newPos; + vector newPos; + float newSize_x, newSize_y; if(mySize_x/mySize_y > 3) { newSize_x = 3 * mySize_y; diff --git a/qcsrc/client/wall.qc b/qcsrc/client/wall.qc index 1c30f4eec..f53c60f0c 100644 --- a/qcsrc/client/wall.qc +++ b/qcsrc/client/wall.qc @@ -8,7 +8,6 @@ void Ent_Wall_Draw() { float f; float d; - vector save; var .vector fld; if(self.bgmscriptangular) -- 2.39.2