]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/minigames/minigame/bd.qc
Fix targets potentially spawning in the same location as another piece
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / minigames / minigame / bd.qc
index aa977d6af0e251b3446e2ff4ad89328311da5185..ee92f889af46792486ab3a18be6ae915ca9f773c 100644 (file)
@@ -85,7 +85,7 @@ void minigame_setup_randompiece(entity minigame, int ttype)
        for(j = 1; j < BD_NUM_CNT - 1; ++j)
        {
                string pos = minigame_tile_buildname(i, j);
-               if(!bd_find_piece(minigame, pos, false))
+               if(!bd_find_piece(minigame, pos, false) && !bd_find_piece(minigame, pos, true))
                        RandomSelection_Add(world, 0, pos, 1, 1);
        }