]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
complain if powerups are not properly marked
authorRudolf Polzer <divverent@alientrap.org>
Wed, 21 Dec 2011 09:51:51 +0000 (10:51 +0100)
committerRudolf Polzer <divverent@alientrap.org>
Wed, 21 Dec 2011 09:51:51 +0000 (10:51 +0100)
qcsrc/server/t_items.qc

index e8775b64aa704740ed66ad39860affe7bbc903c7..79c39ae95d7998899e99529451df30ff22b05fed 100644 (file)
@@ -233,6 +233,11 @@ void Item_RespawnCountdown (void)
                                case IT_FUEL_REGEN:     name = "item-fuelregen"; rgb = '1 0.5 0'; break;
                                case IT_JETPACK:        name = "item-jetpack"; rgb = '0.5 0.5 0.5'; break;
                        }
+                       if(!name)
+                       {
+                               print("Unknown powerup-marked item is wanting to respawn\n");
+                               localcmd(sprintf("prvm_edict server %d\n", num_for_edict(self)));
+                       }
                        if(name)
                        {
                                WaypointSprite_Spawn(name, 0, 0, self, '0 0 64', world, 0, self, waypointsprite_attached, TRUE, RADARICON_POWERUP, rgb);