From: terencehill Date: Thu, 8 Aug 2024 09:54:55 +0000 (+0200) Subject: Rename a variable in notif_arg_item_wepammo X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=1c195c3252180ad00d127cd543c320ba75857a39;p=xonotic%2Fxonotic-data.pk3dir.git Rename a variable in notif_arg_item_wepammo --- diff --git a/qcsrc/common/notifications/all.qh b/qcsrc/common/notifications/all.qh index 2ac682f96..e7e26a48e 100644 --- a/qcsrc/common/notifications/all.qh +++ b/qcsrc/common/notifications/all.qh @@ -645,20 +645,20 @@ string notif_arg_spree_inf(float type, string input, string player, float spree) string notif_arg_item_wepammo(float f1, float f2) { - string ammoitems = ""; + string ammotype = ""; Weapon wep = REGISTRY_GET(Weapons, f1); // TODO: registry handles switch (wep.ammo_type) { - case RES_SHELLS: ammoitems = ITEM_Shells.m_name; break; - case RES_BULLETS: ammoitems = ITEM_Bullets.m_name; break; - case RES_ROCKETS: ammoitems = ITEM_Rockets.m_name; break; - case RES_CELLS: ammoitems = ITEM_Cells.m_name; break; - case RES_PLASMA: ammoitems = ITEM_Plasma.m_name; break; - case RES_FUEL: ammoitems = ITEM_JetpackFuel.m_name; break; + case RES_SHELLS: ammotype = ITEM_Shells.m_name; break; + case RES_BULLETS: ammotype = ITEM_Bullets.m_name; break; + case RES_ROCKETS: ammotype = ITEM_Rockets.m_name; break; + case RES_CELLS: ammotype = ITEM_Cells.m_name; break; + case RES_PLASMA: ammotype = ITEM_Plasma.m_name; break; + case RES_FUEL: ammotype = ITEM_JetpackFuel.m_name; break; default: return ""; // doesn't use ammo } - return sprintf(_(" with %d %s"), f2, strtolower(ammoitems)); + return sprintf(_(" with %d %s"), f2, strtolower(ammotype)); }