X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Ftriggers%2Fteleporters.qh;h=6f5f8cb76e21bec6f941b85e2aebccd767b5ba21;hb=7a4fd9462081b54b0d1b4348208e900a5730e25e;hp=9366678b15c50dd79db5f194dcc3aadfec7d6a57;hpb=a5357242d8541b890aa0f11e647669c7c3efb2df;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/triggers/teleporters.qh b/qcsrc/common/triggers/teleporters.qh index 9366678b1..6f5f8cb76 100644 --- a/qcsrc/common/triggers/teleporters.qh +++ b/qcsrc/common/triggers/teleporters.qh @@ -1,5 +1,7 @@ -#ifndef T_TELEPORTERS_H -#define T_TELEPORTERS_H +#pragma once + +IntrusiveList g_teleporters; +STATIC_INIT(g_teleporters) { g_teleporters = IL_NEW(); } .entity pusher; const float TELEPORT_FLAG_SOUND = 1; @@ -17,7 +19,7 @@ const float TELEPORT_SIMPLE = 2; // only do teleport, nothing special entity Simple_TeleportPlayer(entity teleporter, entity player); -void Teleport_Touch (); +void Teleport_Touch(entity this, entity toucher); void teleport_findtarget(entity this); @@ -92,5 +94,3 @@ void WarpZone_PostTeleportPlayer_Callback(entity pl); if(head.isplayermodel) \ if(boxesoverlap(deathmin, deathmax, head.absmin, head.absmax)) #endif - -#endif