Skip to content

Commit

Permalink
Continue the background music when loading a savegame through Load ev…
Browse files Browse the repository at this point in the history
…ent command

Fix #3029
  • Loading branch information
Ghabry committed Jun 8, 2023
1 parent baa27d4 commit 5aa0b03
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/scene_map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,11 @@ void Scene_Map::Start() {
Start2(MapUpdateAsyncContext());
}

void Scene_Map::StartFromSave(int from_save_id) {
this->from_save_id = from_save_id;
Start();
}

void Scene_Map::Start2(MapUpdateAsyncContext actx) {
PreUpdate(actx);

Expand Down
1 change: 1 addition & 0 deletions src/scene_map.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ class Scene_Map: public Scene {
~Scene_Map();

void Start() override;
void StartFromSave(int from_save_id);
void Continue(SceneType prev_scene) override;
void vUpdate() override;
void TransitionIn(SceneType prev_scene) override;
Expand Down

0 comments on commit 5aa0b03

Please sign in to comment.