]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/impulse.qc
Spawner: Spawn nothing if it's set to an invalid monster
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / impulse.qc
index d3b212700996c2d23d6e9fdb5182f9069dd73b91..8a10a6d7525f5c973367b7adef18c16546cfd8a6 100644 (file)
@@ -551,7 +551,7 @@ IMPULSE(navwaypoint_unreachable)
        if (m) LOG_INFOF("%d waypoints have been marked total\n", m);
 
        j = 0;
-       FOREACH_ENTITY_CLASS("info_player_deathmatch", true,
+       IL_EACH(g_spawnpoints, true,
        {
                vector org = it.origin;
                tracebox(it.origin, STAT(PL_MIN, NULL), STAT(PL_MAX, NULL), it.origin - '0 0 512', MOVE_NOMONSTERS, NULL);