[III] Fix teleport & vehicle spawn crash with CLEO

This commit is contained in:
Grinch_ 2021-11-24 19:28:55 +06:00
parent 29f841f18b
commit f666797a15
3 changed files with 5 additions and 2 deletions

View File

@ -2,5 +2,5 @@
#define MENU_NAME "Cheat Menu" #define MENU_NAME "Cheat Menu"
#define MENU_VERSION_NUMBER "3.0" #define MENU_VERSION_NUMBER "3.0"
#define MENU_VERSION MENU_VERSION_NUMBER"-beta" #define MENU_VERSION MENU_VERSION_NUMBER"-beta"
#define BUILD_NUMBER "20211117" #define BUILD_NUMBER "20211124"
#define MENU_TITLE MENU_NAME " v" MENU_VERSION #define MENU_TITLE MENU_NAME " v" MENU_VERSION

View File

@ -155,8 +155,8 @@ void Teleport::TeleportPlayer(bool get_marker, CVector pos, int interior_id)
#ifndef GTA3 #ifndef GTA3
BY_GAME(pPlayer->m_nAreaCode, pPlayer->m_nInterior, NULL) = interior_id; BY_GAME(pPlayer->m_nAreaCode, pPlayer->m_nInterior, NULL) = interior_id;
#endif
Command<Commands::SET_AREA_VISIBLE>(interior_id); Command<Commands::SET_AREA_VISIBLE>(interior_id);
#endif
} }
void Teleport::TeleportToLocation(std::string& rootkey, std::string& bLocName, std::string& loc) void Teleport::TeleportToLocation(std::string& rootkey, std::string& bLocName, std::string& loc)

View File

@ -453,7 +453,10 @@ void Vehicle::SpawnVehicle(std::string& rootkey, std::string& vehName, std::stri
veh->SetOrientation(x, y, z); veh->SetOrientation(x, y, z);
#endif #endif
Command<Commands::WARP_CHAR_INTO_CAR>(hplayer, hveh); Command<Commands::WARP_CHAR_INTO_CAR>(hplayer, hveh);
#ifndef GTA3
Command<Commands::SET_CAR_FORWARD_SPEED>(hveh, speed); Command<Commands::SET_CAR_FORWARD_SPEED>(hveh, speed);
#endif
} }
else else
{ {