This commit is contained in:
Grinch_ 2022-01-21 23:33:31 +06:00
parent 7995ca7614
commit 3a278c2c1d
3 changed files with 5 additions and 5 deletions

View File

@ -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<size_t>(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);

View File

@ -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<Commands::SET_CAR_FORWARD_SPEED>(CPools::GetVehicleRef(pVeh), 0);
Command<Commands::SET_CAR_FORWARD_SPEED>(CPools::GetVehicleRef(pVeh), speed);
#endif
}

View File

@ -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