Skip to content

Commit

Permalink
fix: reset ball speed on disabling cheat
Browse files Browse the repository at this point in the history
  • Loading branch information
Swung0x48 committed Jul 15, 2022
1 parent b9988b8 commit 58475c0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion BuildVer.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#define BML_MAJOR_VER 0
#define BML_MINOR_VER 3
#define BML_BUILD_VER 40
#define BML_BUILD_VER 41
2 changes: 2 additions & 0 deletions ModLoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -744,6 +744,8 @@ bool ModLoader::IsCheatEnabled() {
}

void ModLoader::EnableCheat(bool enable) {
if (!enable)
ModLoader::m_instance->ExecuteCommand("speed 1");
m_cheatEnabled = enable;
m_bmlmod->ShowCheatBanner(enable);
BroadcastCallback(&IMod::OnCheatEnabled, std::bind(&IMod::OnCheatEnabled, std::placeholders::_1, enable));
Expand Down

0 comments on commit 58475c0

Please sign in to comment.