Merge branch 'fix-enemy-spawn' of github.com:dnutiu/projekt-bombs into fix-enemy-spawn

This commit is contained in:
Andrei Gavra 2019-08-06 19:41:44 +03:00
commit 3efcb6e515

View file

@ -206,7 +206,6 @@ namespace src.Level
private void SetupLevelEnemies()
{
var numberOfEnemiesToPlace = _enemyCount.RandomIntRange();
_freeGridPositions.ShuffleList();
_freeGridPositions.RemoveAll(pos => pos.x <= XMaxEnemyPosition && pos.y >= YMinEnemyPosition);
foreach (var nextPosition in _freeGridPositions)