]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
complain if owner gets cleared by warp for a non-projectile
authorRudolf Polzer <divverent@xonotic.org>
Sun, 9 Oct 2011 13:21:28 +0000 (15:21 +0200)
committerRudolf Polzer <divverent@xonotic.org>
Sun, 9 Oct 2011 13:21:28 +0000 (15:21 +0200)
qcsrc/server/t_teleporters.qc

index e069aec9f3d7e18c1d2f9af5cfecc21aa745cd80..02c15fb158bd0792533a2714dfbf38eaeb0d5ee2 100644 (file)
@@ -324,7 +324,11 @@ void WarpZone_PostTeleportPlayer_Callback(entity pl)
        UpdateCSQCProjectileAfterTeleport(pl);
        // "disown" projectiles after teleport
        if(pl.owner == pl.realowner)
+       {
+               if(!(pl.flags & FL_PROJECTILE))
+                       print("A non-projectile got through a warpzone and its owner cleared. It's a \n", pl.classname, ".\n");
                pl.owner = world;
+       }
        if(pl.classname == "player")
        {
                // reset tracking of oldvelocity for impact damage (sudden velocity changes)