don't care if a BOT can see a warp getting rearranged
authorRudolf Polzer <divverent@alientrap.org>
Sun, 10 Oct 2010 17:34:55 +0000 (19:34 +0200)
committerRudolf Polzer <divverent@alientrap.org>
Sun, 10 Oct 2010 17:34:55 +0000 (19:34 +0200)
qcsrc/warpzonelib/server.qc

index 72bfb23e39488bff3c44f79e2aecbb21a6bc39c0..3292085805d85ac832d1dc96664798ab450a61ae 100644 (file)
@@ -604,7 +604,7 @@ float visible_to_some_client(entity ent)
 {
        entity e;
        for(e = nextent(world); clienttype(e) != CLIENTTYPE_NOTACLIENT; e = nextent(e))
-               if(e.classname == "player")
+               if(e.classname == "player" && clienttype(e) == CLIENTTYPE_REAL)
                        if(checkpvs(e.origin + e.view_ofs, ent))
                                return 1;
        return 0;