]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
In CTS, allow spawnpoints to have an invalid target (fixes a crash on several defrag...
authorMario <mario@smbclan.net>
Mon, 12 Aug 2019 19:21:36 +0000 (05:21 +1000)
committerMario <mario@smbclan.net>
Mon, 12 Aug 2019 19:22:09 +0000 (05:22 +1000)
qcsrc/server/spawnpoints.qc

index 03b40c5e12864aa7570c19ff0169c0ec107162b2..40acbb6d4a7d1dd4e4407fdf433bbf99e845c9cd 100644 (file)
@@ -262,7 +262,7 @@ vector Spawn_Score(entity this, entity spot, float mindist, float teamcheck)
                        }
                }
 
-               if(!found)
+               if(!found && !g_cts)
                {
                        LOG_TRACE("WARNING: spawnpoint at ", vtos(spot.origin), " could not find its target ", spot.target);
                        return '-1 0 0';