Mario Editor: save to filename entered in editor

This commit is contained in:
2022-07-22 22:18:01 +02:00
parent c505915fd2
commit 70f30b6767
2 changed files with 11 additions and 28 deletions
+2 -1
View File
@@ -94,7 +94,8 @@ int main() {
SDL_framerateDelay(&gFPS);
SDL_PumpEvents();
std::lock_guard<std::mutex> lock(render_mutex);
for (size_t i = 0; i < game_scenes.size(); i++) {
auto max_game_scenes = game_scenes.size();
for (size_t i = 0; i < max_game_scenes; i++) {
game_scenes[i].additionalRender(game_scenes[i].scene);
// additional renderer can remove scene from game_scenes, better
// check