From: Mario Date: Mon, 26 Oct 2015 07:02:59 +0000 (+1000) Subject: Fix targets potentially spawning in the same location as another piece X-Git-Tag: xonotic-v0.8.2~1654^2~22 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=23c5e65bb53b7ed27861bc32e3f6575e5a4a2b45;p=xonotic%2Fxonotic-data.pk3dir.git Fix targets potentially spawning in the same location as another piece --- 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); }