]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix mage constantly trying to increase ammo if the player has max ammo
authorMario <mario.mario@y7mail.com>
Wed, 5 Jun 2013 20:14:56 +0000 (06:14 +1000)
committerMario <mario.mario@y7mail.com>
Wed, 5 Jun 2013 20:14:56 +0000 (06:14 +1000)
qcsrc/server/monsters/monster/mage.qc

index 740052ff6f2ad000dd51cf6b396f80f29da5748d..e107866ce37ca42f95cd652a0ec01c11f5c0b0c6 100644 (file)
@@ -63,7 +63,7 @@ float friend_needshelp(entity e)
                }
                case 1:
                {
-                       if(e.ammo_cells < g_pickup_cells_max || e.ammo_rockets < g_pickup_rockets_max || e.ammo_nails < g_pickup_nails_max || e.ammo_shells < g_pickup_shells_max)
+                       if((e.ammo_cells && e.ammo_cells < g_pickup_cells_max) || (e.ammo_rockets && e.ammo_rockets < g_pickup_rockets_max) || (e.ammo_nails && e.ammo_nails < g_pickup_nails_max) || (e.ammo_shells && e.ammo_shells < g_pickup_shells_max))
                                return TRUE;
                        break;
                }