]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
fix more warnings
authorRudolf Polzer <divverent@alientrap.org>
Wed, 27 Oct 2010 19:21:24 +0000 (21:21 +0200)
committerRudolf Polzer <divverent@alientrap.org>
Wed, 27 Oct 2010 19:21:24 +0000 (21:21 +0200)
qcsrc/client/View.qc
qcsrc/client/hook.qc
qcsrc/client/hud.qc
qcsrc/client/wall.qc

index 25bde8975cfe3bfb3ab00cd218156337b3b52448..39f0586b17b9c701483ba75f71f64b27dbebdf04 100644 (file)
@@ -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
index c1e8383aa6daf415356034b8b2bda1bc13193e7c..cb2d7f356f021ea41ee703876dbd950f17c60566 100644 (file)
@@ -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;
index 4272aefbb4c52e4ad29378475cc9eb86429f7a65..8ddcd25eb516bea0ed4973256920b681f8175e22 100644 (file)
@@ -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;
index 1c30f4eec289b6b3cedd9aefc6b08390cbc52373..f53c60f0c3e1a89fdd1b000956f4e53eaa2ef8ee 100644 (file)
@@ -8,7 +8,6 @@ void Ent_Wall_Draw()
 {
        float f;
        float d;
-       vector save;
        var .vector fld;
 
        if(self.bgmscriptangular)