Browse Source

Fix number of walls in bossrush to be the same as in LCM

Enrico Guiraud 4 years ago
parent
commit
07ed7cc726
1 changed files with 2 additions and 1 deletions
  1. 2 1
      functions.cpp

+ 2 - 1
functions.cpp

@@ -1441,6 +1441,7 @@ int choose_level_bossrush(int* commands)
 
 void setup_level_bossrush(int level, double& shootr, double& poweruprate, int& walls_num, int& refresh_t)
 {
+	walls_num = 3;
 	switch(level)        //setting game parameters
 	{
 		case 1:
@@ -1469,10 +1470,10 @@ void setup_level_bossrush(int level, double& shootr, double& poweruprate, int& w
 			shootr = 0.02;
 			refresh_t = (int)(0.07*1E3);
 			poweruprate = 0.04;
+			walls_num = 2;
 			break;
 		}
 	}
-	walls_num = 3;
 }
 
 void resetbosses(boss* Bosses,boss& boss1,player& player1){