Skip to content

Commit

Permalink
BLUGA: Add window should close condition
Browse files Browse the repository at this point in the history
  • Loading branch information
TTENSHII committed Nov 5, 2023
1 parent dc7e1aa commit 98c27fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/B-luga/include/B-luga/SceneManager.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ namespace Scene {
{
try {
Registry::getInstance().callback(Events::BEFORE_LOOP);
while (!_stop) {
while (!_stop && !Raylib::Window::windowShouldClose()) {
Registry::getInstance().callback(Events::START_LOOP);
auto scene = _scenes.at(static_cast<std::size_t>(_currentScene));
updateSystemManagers(scene);
Expand Down

0 comments on commit 98c27fc

Please sign in to comment.