barallantme en els putos vectors
This commit is contained in:
@@ -16,7 +16,12 @@ Director::Director(int argc, char *argv[])
|
||||
{
|
||||
// Inicializa variables
|
||||
section = new section_t();
|
||||
#ifdef RECORDING
|
||||
section->name = SECTION_PROG_GAME;
|
||||
section->subsection = SUBSECTION_GAME_PLAY_1P;
|
||||
#else
|
||||
section->name = SECTION_PROG_LOGO;
|
||||
#endif
|
||||
|
||||
// Comprueba los parametros del programa
|
||||
checkProgramArguments(argc, argv);
|
||||
@@ -279,7 +284,8 @@ bool Director::setFileList()
|
||||
asset->add(systemFolder + "/config.txt", t_data, false, true);
|
||||
asset->add(systemFolder + "/score.bin", t_data, false, true);
|
||||
asset->add(prefix + "/data/config/param.txt", t_data);
|
||||
asset->add(prefix + "/data/config/demo.bin", t_data);
|
||||
asset->add(prefix + "/data/config/demo1.bin", t_data);
|
||||
asset->add(prefix + "/data/config/demo2.bin", t_data);
|
||||
asset->add(prefix + "/data/config/gamecontrollerdb.txt", t_data);
|
||||
|
||||
// Notificaciones
|
||||
@@ -419,7 +425,11 @@ void Director::initOptions()
|
||||
// Pone unos valores por defecto para las opciones
|
||||
|
||||
// Opciones varias
|
||||
#ifdef VERBOSE
|
||||
options->console = true;
|
||||
#else
|
||||
options->console = false;
|
||||
#endif
|
||||
|
||||
// Opciones de video
|
||||
options->video.mode = 0;
|
||||
@@ -818,7 +828,8 @@ void Director::runInstructions()
|
||||
// Ejecuta el juego en modo demo
|
||||
void Director::runDemoGame()
|
||||
{
|
||||
demoGame = new Game(1, 0, renderer, screen, asset, lang, input, true, param, options, section, nullptr);
|
||||
const int playerID = (rand() % 2) + 1;
|
||||
demoGame = new Game(playerID, 0, renderer, screen, asset, lang, input, true, param, options, section, nullptr);
|
||||
demoGame->run();
|
||||
delete demoGame;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user