1. ZRS Razvoj igara
  2. Untitled project
  3. Pucaljka

Commits

Nikola Cvetko  committed 024d58a

Fix for last commit.

  • Participants
  • Parent commits 5a4d389
  • Branches default

Comments (0)

Files changed (2)

File gm_level.cpp

View file
  • Ignore whitespace
     if(playership->isDead())
     {
         gGame->switchGameMode(new GM_MainMenu());
-        printf("Game Over");
+        printf("Game Over\n");
     }
 }

File playership.cpp

View file
  • Ignore whitespace
 
 static const double playerShipAngleV = 180;
 static const double playerShipYV = 380;
-static double playerShipLives = 3;
+static int playerShipLives = 3;
 
 extern SDL_Joystick * gJoystick;
 
 {
     playerShipLives -= 1;
     if(playerShipLives <= 0)
+    {
         died = true;
+        playerShipLives = 3;
+    }
+
 }