[nexuiz-commits] r6578 - in branches/nexuiz-2.0: . data/qcsrc/server
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Thu Apr 23 10:56:01 EDT 2009
Author: div0
Date: 2009-04-23 10:56:01 -0400 (Thu, 23 Apr 2009)
New Revision: 6578
Modified:
branches/nexuiz-2.0/.patchsets
branches/nexuiz-2.0/data/qcsrc/server/waypointsprites.qc
Log:
r6577 | div0 | 2009-04-23 16:50:57 +0200 (Thu, 23 Apr 2009) | 2 lines
improve waypointsprites for speccers
Modified: branches/nexuiz-2.0/.patchsets
===================================================================
--- branches/nexuiz-2.0/.patchsets 2009-04-23 14:50:57 UTC (rev 6577)
+++ branches/nexuiz-2.0/.patchsets 2009-04-23 14:56:01 UTC (rev 6578)
@@ -1,2 +1,2 @@
master = svn://svn.icculus.org/nexuiz/trunk
-revisions_applied = 1-6536,6541-6549,6552-6567,6572-6572
+revisions_applied = 1-6536,6541-6549,6552-6567,6572-6572,6577-6577
Modified: branches/nexuiz-2.0/data/qcsrc/server/waypointsprites.qc
===================================================================
--- branches/nexuiz-2.0/data/qcsrc/server/waypointsprites.qc 2009-04-23 14:50:57 UTC (rev 6577)
+++ branches/nexuiz-2.0/data/qcsrc/server/waypointsprites.qc 2009-04-23 14:56:01 UTC (rev 6578)
@@ -163,7 +163,13 @@
{
// this is not in SendEntity because it shall run every frame, not just every update
- return self.waypointsprite_visible_for_player(other);
+ // make spectators see what the player would see
+ entity e;
+ e = other;
+ if(e.classname == "spectator")
+ e = e.enemy;
+
+ return self.waypointsprite_visible_for_player(e);
}
float WaypointSprite_SendEntity(entity to, float sendflags)
More information about the nexuiz-commits
mailing list