X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fportals.qc;h=260e035b5bef4251057af0cec6d12663b211677f;hb=19e5fa4ee9a0bb59c1cec92a1b0501b14f8ccb63;hp=b41c53bbcce4eed3dcd541f25fd738ebfb750fae;hpb=394ef402d22a2acd9e3990189f256f20dbcc4cba;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/portals.qc b/qcsrc/server/portals.qc index b41c53bbc..260e035b5 100644 --- a/qcsrc/server/portals.qc +++ b/qcsrc/server/portals.qc @@ -208,8 +208,8 @@ float Portal_FindSafeOrigin(entity portal) { vector o; o = portal.origin; - portal.mins = STAT(PL_MIN, NULL) - SAFERNUDGE; - portal.maxs = STAT(PL_MAX, NULL) + SAFERNUDGE; + portal.mins = PL_MIN_CONST - SAFERNUDGE; + portal.maxs = PL_MAX_CONST + SAFERNUDGE; fixedmakevectors(portal.mangle); portal.origin += 16 * v_forward; if(!move_out_of_solid(portal)) @@ -473,7 +473,7 @@ void Portal_Think(entity this) fixedmakevectors(this.mangle); - FOREACH_CLIENT(IS_PLAYER(it), LAMBDA( + FOREACH_CLIENT(IS_PLAYER(it), { if(it != o) if(IS_INDEPENDENT_PLAYER(it) || IS_INDEPENDENT_PLAYER(o)) continue; // cannot go through someone else's portal @@ -487,7 +487,7 @@ void Portal_Think(entity this) if(it.(weaponentity).hook) Portal_Think_TryTeleportPlayer(this, it.(weaponentity).hook, g); } - )); + }); this.solid = SOLID_TRIGGER; this.aiment = o; #endif