]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix targets potentially spawning in the same location as another piece
authorMario <mario@smbclan.net>
Mon, 26 Oct 2015 07:02:59 +0000 (17:02 +1000)
committerMario <mario@smbclan.net>
Mon, 26 Oct 2015 07:02:59 +0000 (17:02 +1000)
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);
        }