]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Change item_armor_large to item_armor_mega
authorFreddy <schro.sb@gmail.com>
Fri, 4 Nov 2016 17:11:48 +0000 (18:11 +0100)
committerFreddy <schro.sb@gmail.com>
Fri, 4 Nov 2016 17:11:48 +0000 (18:11 +0100)
also add a spawnfunc for item_armor_large for
backwards compatability

qcsrc/common/t_items.qc

index dcd6bb9829a8fe75de34aa2bf92b583eba481fb5..dd521a7d91141a5b169e218e19d9a96ed52bb611 100644 (file)
@@ -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); }