forked from jaildesigner-jailgames/jaildoctors_dilemma
Reestructurant la classe Options
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
#include "global_events.h"
|
||||
#include "options.h" // Para Options, options, OptionsGame, OptionsAudio
|
||||
#include "options.h" // Para Options, options, OptionsGame, OptionsAudio
|
||||
#include "mouse.h"
|
||||
|
||||
namespace globalEvents
|
||||
@@ -10,14 +10,14 @@ namespace globalEvents
|
||||
// Evento de salida de la aplicación
|
||||
if (event.type == SDL_QUIT)
|
||||
{
|
||||
options.section.name = SECTION_QUIT;
|
||||
options.section.section = Section::QUIT;
|
||||
return;
|
||||
}
|
||||
|
||||
if (event.type == SDL_RENDER_DEVICE_RESET || event.type == SDL_RENDER_TARGETS_RESET)
|
||||
{
|
||||
//reLoadTextures();
|
||||
}
|
||||
{
|
||||
// reLoadTextures();
|
||||
}
|
||||
|
||||
Mouse::handleEvent(event);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user