forked from jaildesigner-jailgames/jaildoctors_dilemma
Añadido el parametro --invincible
This commit is contained in:
@@ -20,9 +20,9 @@ Game::Game(SDL_Renderer *renderer, Screen *screen, Resource *resource, Asset *as
|
||||
|
||||
// ****
|
||||
// this->debug->setEnabled(true);
|
||||
currentRoom = "46.room";
|
||||
const int x = 0;
|
||||
const int y = 6;
|
||||
currentRoom = "27.room";
|
||||
const int x = 29;
|
||||
const int y = 13;
|
||||
spawnPoint = {x * 8, y * 8, 0, 0, 0, s_standing, SDL_FLIP_HORIZONTAL};
|
||||
// ****
|
||||
|
||||
@@ -384,7 +384,7 @@ void Game::checkEndGame()
|
||||
// Mata al jugador
|
||||
void Game::killPlayer()
|
||||
{
|
||||
if (this->player->getInvincible())
|
||||
if (this->player->getInvincible() || options->invincible)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user