]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/triggers/trigger/viewloc.qc
Reset viewloc when observing instead of constantly, should fix spectators seeing...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / triggers / trigger / viewloc.qc
index 41394ac4318909a62f685c869fbf28970919c523..50bf3d05ee0b1e597a352f783fe0b376dd9dd2b3 100644 (file)
@@ -17,7 +17,7 @@ void viewloc_think(entity this)
 
        // set myself as current viewloc where possible
 #if 1
-       FOREACH_CLIENT(it.viewloc == this,
+       FOREACH_CLIENT(IS_PLAYER(it) && it.viewloc == this,
        {
                it.viewloc = NULL;
        });