From 3a278c2c1d4ac6739167b85d05e89d30cef2c067 Mon Sep 17 00:00:00 2001 From: Grinch_ Date: Fri, 21 Jan 2022 23:33:31 +0600 Subject: [PATCH] Fix typo --- src/cheatmenu.cpp | 6 +++--- src/util.cpp | 2 +- src/version.h | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/cheatmenu.cpp b/src/cheatmenu.cpp index 30d6894..3497017 100644 --- a/src/cheatmenu.cpp +++ b/src/cheatmenu.cpp @@ -100,7 +100,7 @@ void CheatMenu::ProcessMenuPages() for (size_t i = 0; i < m_headerList.size(); ++i) { /* - * For Welcome & Update pages + * For welcome & update pages * They don't need to add item in the header list */ if (m_headerList[i].skipHeader) @@ -126,7 +126,7 @@ void CheatMenu::ProcessMenuPages() { m_nMenuPage = m_headerList[i].page; size_t curPage = static_cast(m_headerList[i].page); - gConfig.SetValue("window.idnum", curPage); + gConfig.SetValue("window.page", curPage); pCallback = m_headerList[i].pFunc; Updater::ResetUpdaterState(); } @@ -174,7 +174,7 @@ CheatMenu::CheatMenu() ApplyStyle(); // Load menu settings - m_nMenuPage = (eMenuPages)gConfig.GetValue("window.idnum", (size_t)eMenuPages::WELCOME); + m_nMenuPage = (eMenuPages)gConfig.GetValue("window.page", (size_t)eMenuPages::WELCOME); m_fMenuSize.x = gConfig.GetValue("window.sizeX", screen::GetScreenWidth() / 4.0f); m_fMenuSize.y = gConfig.GetValue("window.sizeY", screen::GetScreenHeight() / 1.2f); srand(CTimer::m_snTimeInMilliseconds); diff --git a/src/util.cpp b/src/util.cpp index d76ffb2..3a6d69d 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -11,7 +11,7 @@ void Util::SetCarForwardSpeed(CVehicle *pVeh, float speed) pVeh->m_vecMoveSpeed.y = speedFactor * inVec.y; pVeh->m_vecMoveSpeed.z = speedFactor * inVec.z; #else - Command(CPools::GetVehicleRef(pVeh), 0); + Command(CPools::GetVehicleRef(pVeh), speed); #endif } diff --git a/src/version.h b/src/version.h index 68fd0e0..b99ab74 100644 --- a/src/version.h +++ b/src/version.h @@ -2,5 +2,5 @@ #define MENU_NAME "Cheat Menu" #define MENU_VERSION_NUMBER "3.1" #define MENU_VERSION MENU_VERSION_NUMBER"-beta" -#define BUILD_NUMBER "20220118" +#define BUILD_NUMBER "20220122" #define MENU_TITLE MENU_NAME " v" MENU_VERSION