From: Rudolf Polzer Date: Sun, 10 Oct 2010 17:34:55 +0000 (+0200) Subject: don't care if a BOT can see a warp getting rearranged X-Git-Tag: xonotic-v0.1.0preview~307^2~28^2~1 X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=commitdiff_plain;h=c9fad115b4353969bb2da041de3cb25293d5703b don't care if a BOT can see a warp getting rearranged --- diff --git a/qcsrc/warpzonelib/server.qc b/qcsrc/warpzonelib/server.qc index 72bfb23e39..3292085805 100644 --- a/qcsrc/warpzonelib/server.qc +++ b/qcsrc/warpzonelib/server.qc @@ -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;