]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Prevent recursively applying waypoints to checkpoints
authorMario <mario.mario@y7mail.com>
Mon, 2 Dec 2024 07:34:35 +0000 (17:34 +1000)
committerMario <mario.mario@y7mail.com>
Mon, 2 Dec 2024 07:34:35 +0000 (17:34 +1000)
qcsrc/server/race.qc

index 5e4f6dea5992bd8f9f39d17b8ba3a56b34402c95..b2f62e1234f87341f613958755d95221b1ef04b4 100644 (file)
@@ -898,7 +898,7 @@ void defrag_waypointsprites(entity targeted, entity checkpoint)
                        t.sprite.waypointsprite_visible_for_player = race_waypointsprite_visible_for_player;
                }
 
-               if (t.targetname)
+               if (t.targetname && t != checkpoint)
                        defrag_waypointsprites(t, checkpoint);
        }
 }