mogut options.section a SceneManager
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
#include "game/scene_manager.hpp" // Para SceneManager
|
||||
|
||||
#include "utils/global_events.hpp"
|
||||
|
||||
#include "core/input/mouse.hpp"
|
||||
@@ -8,7 +10,7 @@ namespace globalEvents {
|
||||
void check(const SDL_Event& event) {
|
||||
// Evento de salida de la aplicación
|
||||
if (event.type == SDL_EVENT_QUIT) {
|
||||
Options::section.section = Options::Scene::QUIT;
|
||||
SceneManager::current = SceneManager::Scene::QUIT;
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user