forked from jaildesigner-jailgames/jaildoctors_dilemma
Añadidos nuevos trucos
This commit is contained in:
@@ -9,7 +9,7 @@ Director::Director(int argc, char *argv[])
|
||||
section.name = SECTION_PROG_LOGO;
|
||||
section.subsection = SUBSECTION_LOGO_TO_INTRO;
|
||||
|
||||
section.name = SECTION_PROG_GAME;
|
||||
//section.name = SECTION_PROG_GAME;
|
||||
|
||||
// Crea e inicializa las opciones del programa
|
||||
iniOptions();
|
||||
@@ -85,8 +85,9 @@ void Director::iniOptions()
|
||||
|
||||
// Estos valores no se guardan en el fichero de configuraci´ón
|
||||
options->console = false;
|
||||
options->infiniteLives = false;
|
||||
options->invincible = false;
|
||||
options->cheat.infiniteLives = false;
|
||||
options->cheat.invincible = false;
|
||||
options->cheat.jailEnabled = false;
|
||||
}
|
||||
|
||||
// Comprueba los parametros del programa
|
||||
@@ -105,12 +106,17 @@ void Director::checkProgramArguments(int argc, char *argv[])
|
||||
|
||||
else if (strcmp(argv[i], "--infiniteLives") == 0)
|
||||
{
|
||||
options->infiniteLives = true;
|
||||
options->cheat.infiniteLives = true;
|
||||
}
|
||||
|
||||
else if (strcmp(argv[i], "--invincible") == 0)
|
||||
{
|
||||
options->invincible = true;
|
||||
options->cheat.invincible = true;
|
||||
}
|
||||
|
||||
else if (strcmp(argv[i], "--jailEnabled") == 0)
|
||||
{
|
||||
options->cheat.jailEnabled = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user