X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Flib%2Fwarpzone%2Fcommon.qh;h=26c0e80fe4623526ee12cecc05842fb92c4f5dd0;hb=275cead32998c415fff49383920c26e21de48662;hp=6669ae1aff4d300c7cde3fc0f9bfc34ce3feb4a3;hpb=5972fcfdf1ffe5bef1df9edc2de2944abbeba280;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/lib/warpzone/common.qh b/qcsrc/lib/warpzone/common.qh index 6669ae1af..26c0e80fe 100644 --- a/qcsrc/lib/warpzone/common.qh +++ b/qcsrc/lib/warpzone/common.qh @@ -1,9 +1,11 @@ -#ifndef LIB_WARPZONE_COMMON_H -#define LIB_WARPZONE_COMMON_H +#pragma once // uncomment this if your mod uses the roll angle in fixangle // #define KEEP_ROLL +IntrusiveList g_warpzones; +STATIC_INIT(g_warpzones) { g_warpzones = IL_NEW(); } + float warpzone_warpzones_exist; float warpzone_cameras_exist; @@ -113,4 +115,3 @@ void WarpZoneLib_ExactTrigger_Init(entity this); // WARNING: this kills the trace globals #define EXACTTRIGGER_TOUCH(e,t) if(WarpZoneLib_ExactTrigger_Touch((e), (t))) return #define EXACTTRIGGER_INIT WarpZoneLib_ExactTrigger_Init(this) -#endif