Skip to content

Commit

Permalink
Fix crash in speedrun mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Malacath-92 committed Jan 29, 2022
1 parent a291819 commit 6924e04
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.13.1] - 2021-01-29

<img src="https://img.shields.io/badge/Spelunky 2-1.25.2-orange">

### Fixed
- Crash when running speedrun mode

## [0.13.0] - 2021-01-28

<img src="https://img.shields.io/badge/Spelunky 2-1.25.2-orange">
Expand Down
6 changes: 5 additions & 1 deletion source/playlunky/mod/mod_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -823,7 +823,11 @@ void ModManager::PostGameInit(const class PlaylunkySettings& settings)

PatchCharacterDefinitions(mVfs, settings);

InitBugFixes(mVfs, settings, db_folder, db_original_folder);
const bool speedrun_mode = settings.GetBool("general_settings", "speedrun_mode", false);
if (!speedrun_mode)
{
InitBugFixes(mVfs, settings, db_folder, db_original_folder);
}

Spelunky_InitSoundManager([](const char* file_path)
{
Expand Down

0 comments on commit 6924e04

Please sign in to comment.