From 23c5e65bb53b7ed27861bc32e3f6575e5a4a2b45 Mon Sep 17 00:00:00 2001 From: Mario Date: Mon, 26 Oct 2015 17:02:59 +1000 Subject: [PATCH] Fix targets potentially spawning in the same location as another piece --- qcsrc/common/minigames/minigame/bd.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcsrc/common/minigames/minigame/bd.qc b/qcsrc/common/minigames/minigame/bd.qc index aa977d6af..ee92f889a 100644 --- a/qcsrc/common/minigames/minigame/bd.qc +++ b/qcsrc/common/minigames/minigame/bd.qc @@ -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); } -- 2.39.2