X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fserver%2Ft_items.qc;h=723299cc1609fbd4bf3e48ebedde5472cc8ef811;hp=72e3b09618538e218547b8d76a3dfbd4b5e53ce8;hb=e72ae8623dbd67dc7d85ed16fa4a18dd75663629;hpb=4577d2b7d194f707283a9adde614c2bfb41d7bd1;ds=sidebyside diff --git a/qcsrc/server/t_items.qc b/qcsrc/server/t_items.qc index 72e3b09618..723299cc16 100644 --- a/qcsrc/server/t_items.qc +++ b/qcsrc/server/t_items.qc @@ -811,7 +811,7 @@ float generic_pickupevalfunc(entity player, entity item) {return item.bot_pickup float weapon_pickupevalfunc(entity player, entity item) { - float c, j, position; + float c; // See if I have it already if(item.weapons & ~player.weapons) @@ -834,8 +834,8 @@ float weapon_pickupevalfunc(entity player, entity item) if( bot_custom_weapon && c ) { // Find the highest position on any range - position = -1; - for(j = 0; j < WEP_LAST ; ++j){ + int position = -1; + for (int j = 0; j < WEP_LAST ; ++j){ if( bot_weapons_far[j] == item.weapon || bot_weapons_mid[j] == item.weapon ||