]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Another test for gameplay changes
authorMario <mario@smbclan.net>
Tue, 30 Aug 2016 16:24:30 +0000 (02:24 +1000)
committerMario <mario@smbclan.net>
Tue, 30 Aug 2016 16:24:30 +0000 (02:24 +1000)
qcsrc/server/sv_main.qc

index 0c36a77c5b7689665d101e1d676efe67af567e21..aec41d0fec0c3e1aaa3d3c5fc750406fe09cce82 100644 (file)
@@ -117,7 +117,8 @@ void CreatureFrame_FallDamage(entity this)
 
 void CreatureFrame_All()
 {
-       IL_EACH(g_damagedbycontents, it.damagedbycontents,
+       //IL_EACH(g_damagedbycontents, it.damagedbycontents,
+       FOREACH_ENTITY_FLOAT(damagedbycontents, true,
        {
                if (it.move_movetype == MOVETYPE_NOCLIP) continue;
                CreatureFrame_Liquids(it);
@@ -403,8 +404,8 @@ LABEL(cvar_fail)
 void WarpZone_PostInitialize_Callback()
 {
        // create waypoint links for warpzones
-       //for(entity e = warpzone_first; e; e = e.warpzone_next)
-       for(entity e = NULL; (e = find(e, classname, "trigger_warpzone")); )
+       for(entity e = warpzone_first; e; e = e.warpzone_next)
+       //for(entity e = NULL; (e = find(e, classname, "trigger_warpzone")); )
        {
                vector src, dst;
                src = (e.absmin + e.absmax) * 0.5;