]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
fix some spam
authorRudolf Polzer <divVerent@xonotic.org>
Tue, 11 Oct 2011 04:59:07 +0000 (06:59 +0200)
committerRudolf Polzer <divVerent@xonotic.org>
Tue, 11 Oct 2011 04:59:07 +0000 (06:59 +0200)
qcsrc/server/t_teleporters.qc

index 6a7787d7decd063c0dda54ddca06cc50537a5723..8383b10aaa01f097a7cfe72ce67631d40adcd57c 100644 (file)
@@ -330,10 +330,11 @@ void WarpZone_PostTeleportPlayer_Callback(entity pl)
 {
        UpdateCSQCProjectileAfterTeleport(pl);
        // "disown" projectiles after teleport
+       if(pl.owner)
        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");
+                       print("A non-projectile got through a warpzone and its owner cleared. It's a ", pl.classname, ".\n");
                pl.owner = world;
        }
        if(pl.classname == "player")