From d7870030ea6e6266dd2917383727bc0a2dba48db Mon Sep 17 00:00:00 2001 From: Freddy Date: Fri, 4 Nov 2016 18:11:48 +0100 Subject: [PATCH] Change item_armor_large to item_armor_mega also add a spawnfunc for item_armor_large for backwards compatability --- qcsrc/common/t_items.qc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/qcsrc/common/t_items.qc b/qcsrc/common/t_items.qc index dcd6bb982..dd521a7d9 100644 --- a/qcsrc/common/t_items.qc +++ b/qcsrc/common/t_items.qc @@ -1348,7 +1348,7 @@ spawnfunc(item_armor_big) StartItem(this, ITEM_ArmorLarge); } -spawnfunc(item_armor_large) +spawnfunc(item_armor_mega) { if(!this.armorvalue) this.armorvalue = g_pickup_armormega; @@ -1405,7 +1405,8 @@ spawnfunc(item_health_mega) // support old misnamed entities spawnfunc(item_armor1) { spawnfunc_item_armor_small(this); } // FIXME: in Quake this is green armor, in Xonotic maps it is an armor shard -spawnfunc(item_armor25) { spawnfunc_item_armor_large(this); } +spawnfunc(item_armor25) { spawnfunc_item_armor_mega(this); } +spawnfunc(item_armor_large) { spawnfunc_item_armor_mega(this); } spawnfunc(item_health1) { spawnfunc_item_health_small(this); } spawnfunc(item_health25) { spawnfunc_item_health_medium(this); } spawnfunc(item_health100) { spawnfunc_item_health_mega(this); } -- 2.39.2