Mario: added Yes/No dialog
This commit is contained in:
+7
-3
@@ -94,9 +94,13 @@ int main() {
|
||||
SDL_framerateDelay(&gFPS);
|
||||
SDL_PumpEvents();
|
||||
std::lock_guard<std::mutex> lock(render_mutex);
|
||||
for(auto &scene : game_scenes) {
|
||||
scene.additionalRender(scene.scene);
|
||||
scene.scene->renderScene(false);
|
||||
for (size_t i = 0; i < game_scenes.size(); i++) {
|
||||
game_scenes[i].additionalRender(game_scenes[i].scene);
|
||||
// additional renderer can remove scene from game_scenes, better
|
||||
// check
|
||||
if (i < game_scenes.size()) {
|
||||
game_scenes[i].scene->renderScene(false);
|
||||
}
|
||||
}
|
||||
renderer->presentRenderer();
|
||||
frames++;
|
||||
|
||||
Reference in New Issue
Block a user