]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Mini cleanup
authorterencehill <piuntn@gmail.com>
Mon, 25 Feb 2013 16:04:09 +0000 (17:04 +0100)
committerterencehill <piuntn@gmail.com>
Mon, 25 Feb 2013 16:04:09 +0000 (17:04 +0100)
qcsrc/client/hud.qc

index 6632bfed8a8089470ee73c90c38bceccac570ded..5d8a808859d72839e24d016b54bce6c951889d8b 100644 (file)
@@ -721,7 +721,7 @@ void HUD_Weapons(void)
                weapon_id = self.impulse;
 
                // skip if this weapon doesn't exist
-               if (!self || self.impulse < 0) { continue; }
+               if(!self || weapon_id < 0) { continue; }
 
                // skip this weapon if we don't own it (and onlyowned is enabled)-- or if weapons_complainbubble is showing for this weapon
                if(autocvar_hud_panel_weapons_onlyowned)
@@ -2685,7 +2685,7 @@ void HUD_Radar(void)
        draw_teamradar_player(view_origin, view_angles, '1 1 1');
 
        drawresetcliparea();
-};
+}
 
 // Score (#7)
 //