From: Rudolf Polzer Date: Wed, 21 Dec 2011 09:51:51 +0000 (+0100) Subject: complain if powerups are not properly marked X-Git-Tag: xonotic-v0.6.0~74^2~82 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=6170a1365b8e7be80778ae455e535bfe570c0ce6;p=xonotic%2Fxonotic-data.pk3dir.git complain if powerups are not properly marked --- diff --git a/qcsrc/server/t_items.qc b/qcsrc/server/t_items.qc index e8775b64a..79c39ae95 100644 --- a/qcsrc/server/t_items.qc +++ b/qcsrc/server/t_items.qc @@ -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);