From bf4b6643d90ed978cde38938218013c86ad32bf1 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Mon, 4 Jan 2016 17:12:18 +0100 Subject: [PATCH] =?UTF-8?q?Non=20=C3=A8=20pi=C3=B9=20garantita=20una=20poz?= =?UTF-8?q?ione=20ogni=20piano?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index d2595fe..4d3d71d 100644 --- a/main.cpp +++ b/main.cpp @@ -481,7 +481,7 @@ void generate(Enemy* list[ENEMIES_IN_LEVEL]) } //Posizionamento pozioni di vita int placed_potions = 0; - int potions_in_floor = rand() % MAX_POTIONS_PER_FLOOR + 1; + int potions_in_floor = rand() % MAX_POTIONS_PER_FLOOR; while(placed_potions < potions_in_floor) { int x = rand() % (X_MAX - 1) + 1;