From: terencehill Date: Fri, 22 Feb 2019 17:54:37 +0000 (+0100) Subject: Add parentheses to fix a compile error X-Git-Tag: xonotic-v0.8.5~1593 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=4e46cb4248c01fb8199ec0d39a83419decc1c69d;p=xonotic%2Fxonotic-data.pk3dir.git Add parentheses to fix a compile error --- diff --git a/qcsrc/common/t_items.qc b/qcsrc/common/t_items.qc index 9edea4fb6..30d90faaf 100644 --- a/qcsrc/common/t_items.qc +++ b/qcsrc/common/t_items.qc @@ -781,14 +781,14 @@ bool Item_GiveTo(entity item, entity player) } } bool pickedup = false; - pickedup = pickedup || Item_GiveAmmoTo(item, player, RES_HEALTH, item.max_health); - pickedup = pickedup || Item_GiveAmmoTo(item, player, RES_ARMOR, item.max_armorvalue); - pickedup = pickedup || Item_GiveAmmoTo(item, player, RES_SHELLS, g_pickup_shells_max); - pickedup = pickedup || Item_GiveAmmoTo(item, player, RES_BULLETS, g_pickup_nails_max); - pickedup = pickedup || Item_GiveAmmoTo(item, player, RES_ROCKETS, g_pickup_rockets_max); - pickedup = pickedup || Item_GiveAmmoTo(item, player, RES_CELLS, g_pickup_cells_max); - pickedup = pickedup || Item_GiveAmmoTo(item, player, RES_PLASMA, g_pickup_plasma_max); - pickedup = pickedup || Item_GiveAmmoTo(item, player, RES_FUEL, g_pickup_fuel_max); + pickedup = (pickedup || Item_GiveAmmoTo(item, player, RES_HEALTH, item.max_health)); + pickedup = (pickedup || Item_GiveAmmoTo(item, player, RES_ARMOR, item.max_armorvalue)); + pickedup = (pickedup || Item_GiveAmmoTo(item, player, RES_SHELLS, g_pickup_shells_max)); + pickedup = (pickedup || Item_GiveAmmoTo(item, player, RES_BULLETS, g_pickup_nails_max)); + pickedup = (pickedup || Item_GiveAmmoTo(item, player, RES_ROCKETS, g_pickup_rockets_max)); + pickedup = (pickedup || Item_GiveAmmoTo(item, player, RES_CELLS, g_pickup_cells_max)); + pickedup = (pickedup || Item_GiveAmmoTo(item, player, RES_PLASMA, g_pickup_plasma_max)); + pickedup = (pickedup || Item_GiveAmmoTo(item, player, RES_FUEL, g_pickup_fuel_max)); if (item.itemdef.instanceOfWeaponPickup) { WepSet w;