Fix typo
This commit is contained in:
parent
7995ca7614
commit
3a278c2c1d
@ -100,7 +100,7 @@ void CheatMenu::ProcessMenuPages()
|
|||||||
for (size_t i = 0; i < m_headerList.size(); ++i)
|
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
|
* They don't need to add item in the header list
|
||||||
*/
|
*/
|
||||||
if (m_headerList[i].skipHeader)
|
if (m_headerList[i].skipHeader)
|
||||||
@ -126,7 +126,7 @@ void CheatMenu::ProcessMenuPages()
|
|||||||
{
|
{
|
||||||
m_nMenuPage = m_headerList[i].page;
|
m_nMenuPage = m_headerList[i].page;
|
||||||
size_t curPage = static_cast<size_t>(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;
|
pCallback = m_headerList[i].pFunc;
|
||||||
Updater::ResetUpdaterState();
|
Updater::ResetUpdaterState();
|
||||||
}
|
}
|
||||||
@ -174,7 +174,7 @@ CheatMenu::CheatMenu()
|
|||||||
ApplyStyle();
|
ApplyStyle();
|
||||||
|
|
||||||
// Load menu settings
|
// 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.x = gConfig.GetValue("window.sizeX", screen::GetScreenWidth() / 4.0f);
|
||||||
m_fMenuSize.y = gConfig.GetValue("window.sizeY", screen::GetScreenHeight() / 1.2f);
|
m_fMenuSize.y = gConfig.GetValue("window.sizeY", screen::GetScreenHeight() / 1.2f);
|
||||||
srand(CTimer::m_snTimeInMilliseconds);
|
srand(CTimer::m_snTimeInMilliseconds);
|
||||||
|
@ -11,7 +11,7 @@ void Util::SetCarForwardSpeed(CVehicle *pVeh, float speed)
|
|||||||
pVeh->m_vecMoveSpeed.y = speedFactor * inVec.y;
|
pVeh->m_vecMoveSpeed.y = speedFactor * inVec.y;
|
||||||
pVeh->m_vecMoveSpeed.z = speedFactor * inVec.z;
|
pVeh->m_vecMoveSpeed.z = speedFactor * inVec.z;
|
||||||
#else
|
#else
|
||||||
Command<Commands::SET_CAR_FORWARD_SPEED>(CPools::GetVehicleRef(pVeh), 0);
|
Command<Commands::SET_CAR_FORWARD_SPEED>(CPools::GetVehicleRef(pVeh), speed);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2,5 +2,5 @@
|
|||||||
#define MENU_NAME "Cheat Menu"
|
#define MENU_NAME "Cheat Menu"
|
||||||
#define MENU_VERSION_NUMBER "3.1"
|
#define MENU_VERSION_NUMBER "3.1"
|
||||||
#define MENU_VERSION MENU_VERSION_NUMBER"-beta"
|
#define MENU_VERSION MENU_VERSION_NUMBER"-beta"
|
||||||
#define BUILD_NUMBER "20220118"
|
#define BUILD_NUMBER "20220122"
|
||||||
#define MENU_TITLE MENU_NAME " v" MENU_VERSION
|
#define MENU_TITLE MENU_NAME " v" MENU_VERSION
|
||||||
|
Loading…
Reference in New Issue
Block a user