[III] Fix crash with vehicle spawning #69
This commit is contained in:
parent
05a66d5cb0
commit
c150899f20
@ -8,8 +8,8 @@
|
|||||||
#define IMGUI_DEFINE_MATH_OPERATORS
|
#define IMGUI_DEFINE_MATH_OPERATORS
|
||||||
|
|
||||||
#define MENU_NAME "Cheat Menu"
|
#define MENU_NAME "Cheat Menu"
|
||||||
#define MENU_VERSION_NUMBER "3.3"
|
#define MENU_VERSION_NUMBER "3.5"
|
||||||
#define MENU_VERSION MENU_VERSION_NUMBER"-beta"
|
#define MENU_VERSION MENU_VERSION_NUMBER
|
||||||
#define MENU_TITLE MENU_NAME " v" MENU_VERSION
|
#define MENU_TITLE MENU_NAME " v" MENU_VERSION
|
||||||
|
|
||||||
#ifdef GTASA
|
#ifdef GTASA
|
||||||
|
@ -166,10 +166,12 @@ void MenuPage::Draw()
|
|||||||
gConfig.Set("Overlay.ShowLocationName", Overlay::m_bLocName);
|
gConfig.Set("Overlay.ShowLocationName", Overlay::m_bLocName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef GTA3
|
||||||
if (ImGui::Checkbox(TEXT("Menu.ShowModelInfo"), &Overlay::m_bModelInfo))
|
if (ImGui::Checkbox(TEXT("Menu.ShowModelInfo"), &Overlay::m_bModelInfo))
|
||||||
{
|
{
|
||||||
gConfig.Set("Overlay.ShowModelInfo", Overlay::m_bModelInfo);
|
gConfig.Set("Overlay.ShowModelInfo", Overlay::m_bModelInfo);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
ImGui::NextColumn();
|
ImGui::NextColumn();
|
||||||
|
|
||||||
|
@ -451,7 +451,9 @@ void VehiclePage::SpawnVehicle(std::string& rootkey, std::string& vehName, std::
|
|||||||
player->GetOrientation(x, y, z);
|
player->GetOrientation(x, y, z);
|
||||||
veh->SetOrientation(x, y, z);
|
veh->SetOrientation(x, y, z);
|
||||||
#endif
|
#endif
|
||||||
|
CWorld::Remove(player);
|
||||||
Command<Commands::WARP_CHAR_INTO_CAR>(hplayer, hveh);
|
Command<Commands::WARP_CHAR_INTO_CAR>(hplayer, hveh);
|
||||||
|
CWorld::Add(player);
|
||||||
Util::SetCarForwardSpeed(veh, speed);
|
Util::SetCarForwardSpeed(veh, speed);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user