]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Allow only showing a waypoint on the radar
authorMario <mario@smbclan.net>
Sun, 21 Aug 2016 06:09:46 +0000 (16:09 +1000)
committerMario <mario@smbclan.net>
Sun, 21 Aug 2016 06:09:46 +0000 (16:09 +1000)
qcsrc/common/mutators/mutator/waypoints/all.qh
qcsrc/common/mutators/mutator/waypoints/waypointsprites.qc

index 4645130551a3c1f4b6be52fb83771a790ee0de8f..e08d9e9873f4d9ca239766bd912603c885eac4d2 100644 (file)
@@ -3,7 +3,7 @@
 
 #include "waypointsprites.qh"
 
-REGISTRY(Waypoints, BITS(6))
+REGISTRY(Waypoints, BITS(7))
 #define Waypoints_from(i) _Waypoints_from(i, WP_Null)
 REGISTER_REGISTRY(Waypoints)
 REGISTRY_CHECK(Waypoints)
index e99303823b9eb44e4efab3daf17fbb72692fba32..4c98f32821beaf40cd47db062fc6be9dc6b8109f 100644 (file)
@@ -18,10 +18,12 @@ bool WaypointSprite_SendEntity(entity this, entity to, float sendflags)
         sendflags |= 0x80;
 
     int f = 0;
-    if(this.currentammo)
+    if(this.currentammo == 1)
         f |= 1; // hideable
     if(this.exteriormodeltoclient == to)
         f |= 2; // my own
+    if(this.currentammo == 2)
+        f |= 2; // radar only
 
     MUTATOR_CALLHOOK(SendWaypoint, this, to, sendflags, f);
     sendflags = M_ARGV(2, int);