X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Flib%2Fwarpzone%2Fcommon.qh;h=0ddd0d052a1a41da19c5b151b1be04b7831b1281;hp=4bbbb853b00bad0266f2482cd5ef7efcccd738d3;hb=991de5e6922cd3c283de56c3249624f0f1bfe767;hpb=651c8c3d25474fe6a926bd4217b3763f263cf02f diff --git a/qcsrc/lib/warpzone/common.qh b/qcsrc/lib/warpzone/common.qh index 4bbbb853b0..0ddd0d052a 100644 --- a/qcsrc/lib/warpzone/common.qh +++ b/qcsrc/lib/warpzone/common.qh @@ -3,6 +3,9 @@ // 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; @@ -103,10 +106,10 @@ entity WarpZone_RefSys_SpawnSameRefSys(entity me); // spawn().R = me.R #ifndef BITXOR_ASSIGN # define BITXOR_ASSIGN(a,b) ((a) = ((a) | (b)) - ((a) & (b))) #endif -float WarpZoneLib_MoveOutOfSolid(entity e); +bool WarpZoneLib_MoveOutOfSolid(entity e); #define move_out_of_solid(e) WarpZoneLib_MoveOutOfSolid(e) -float WarpZoneLib_ExactTrigger_Touch(entity this, entity toucher); +bool WarpZoneLib_ExactTrigger_Touch(entity this, entity toucher); void WarpZoneLib_ExactTrigger_Init(entity this); // WARNING: this kills the trace globals