diff options
author | Sergeanur <s.anureev@yandex.ua> | 2020-03-30 19:10:12 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2020-03-30 19:10:12 +0200 |
commit | 2607a91d87270709db4303ee8cb9011e2d9146ad (patch) | |
tree | 611cf59f1c46b60908057affe8d86eb9b39a23ad /src/modelinfo | |
parent | Add russian lang support (diff) | |
parent | Merge pull request #366 from Nick007J/master (diff) | |
download | re3-2607a91d87270709db4303ee8cb9011e2d9146ad.tar re3-2607a91d87270709db4303ee8cb9011e2d9146ad.tar.gz re3-2607a91d87270709db4303ee8cb9011e2d9146ad.tar.bz2 re3-2607a91d87270709db4303ee8cb9011e2d9146ad.tar.lz re3-2607a91d87270709db4303ee8cb9011e2d9146ad.tar.xz re3-2607a91d87270709db4303ee8cb9011e2d9146ad.tar.zst re3-2607a91d87270709db4303ee8cb9011e2d9146ad.zip |
Diffstat (limited to 'src/modelinfo')
-rw-r--r-- | src/modelinfo/VehicleModelInfo.cpp | 2 | ||||
-rw-r--r-- | src/modelinfo/VehicleModelInfo.h | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/modelinfo/VehicleModelInfo.cpp b/src/modelinfo/VehicleModelInfo.cpp index 87f01177..42ad635b 100644 --- a/src/modelinfo/VehicleModelInfo.cpp +++ b/src/modelinfo/VehicleModelInfo.cpp @@ -1113,6 +1113,8 @@ public: }; STARTPATCHES + InjectHook(0x427820, &CVehicleModelInfo::SetComponentsToUse, PATCH_JUMP); + InjectHook(0x51FDC0, &CVehicleModelInfo_::DeleteRwObject_, PATCH_JUMP); InjectHook(0x51FCB0, &CVehicleModelInfo_::CreateInstance_, PATCH_JUMP); InjectHook(0x51FC60, &CVehicleModelInfo_::SetClump_, PATCH_JUMP); diff --git a/src/modelinfo/VehicleModelInfo.h b/src/modelinfo/VehicleModelInfo.h index 1a6d6a55..5969c4ca 100644 --- a/src/modelinfo/VehicleModelInfo.h +++ b/src/modelinfo/VehicleModelInfo.h @@ -132,5 +132,6 @@ public: static void ShutdownEnvironmentMaps(void); static int GetMaximumNumberOfPassengersFromNumberOfDoors(int id); + static void SetComponentsToUse(int8 c1, int8 c2) { ms_compsToUse[0] = c1; ms_compsToUse[1] = c2; } }; static_assert(sizeof(CVehicleModelInfo) == 0x1F8, "CVehicleModelInfo: error"); |