From f666797a15f6dfd0f92e7b7e24c7b8ea5c9a4758 Mon Sep 17 00:00:00 2001 From: Grinch_ Date: Wed, 24 Nov 2021 19:28:55 +0600 Subject: [PATCH] [III] Fix teleport & vehicle spawn crash with CLEO --- src/menuinfo.h | 2 +- src/teleport.cpp | 2 +- src/vehicle.cpp | 3 +++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/menuinfo.h b/src/menuinfo.h index b8b0a7b..41c242b 100644 --- a/src/menuinfo.h +++ b/src/menuinfo.h @@ -2,5 +2,5 @@ #define MENU_NAME "Cheat Menu" #define MENU_VERSION_NUMBER "3.0" #define MENU_VERSION MENU_VERSION_NUMBER"-beta" -#define BUILD_NUMBER "20211117" +#define BUILD_NUMBER "20211124" #define MENU_TITLE MENU_NAME " v" MENU_VERSION diff --git a/src/teleport.cpp b/src/teleport.cpp index f85b824..028c731 100644 --- a/src/teleport.cpp +++ b/src/teleport.cpp @@ -155,8 +155,8 @@ void Teleport::TeleportPlayer(bool get_marker, CVector pos, int interior_id) #ifndef GTA3 BY_GAME(pPlayer->m_nAreaCode, pPlayer->m_nInterior, NULL) = interior_id; -#endif Command(interior_id); +#endif } void Teleport::TeleportToLocation(std::string& rootkey, std::string& bLocName, std::string& loc) diff --git a/src/vehicle.cpp b/src/vehicle.cpp index 1605f74..f1e3e9a 100644 --- a/src/vehicle.cpp +++ b/src/vehicle.cpp @@ -453,7 +453,10 @@ void Vehicle::SpawnVehicle(std::string& rootkey, std::string& vehName, std::stri veh->SetOrientation(x, y, z); #endif Command(hplayer, hveh); + +#ifndef GTA3 Command(hveh, speed); +#endif } else {