diff options
author | Sergeanur <s.anureev@yandex.ua> | 2020-04-17 15:31:11 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2020-04-17 15:31:11 +0200 |
commit | 599164006a9e7eb7328fc194c9bae1acbb2c887d (patch) | |
tree | c4dc5a5e2bf370e74ffc8ab4b9220ea6e066e952 /src/vehicles/Plane.cpp | |
parent | Merge remote-tracking branch 'samler/world' into Standalone (diff) | |
download | re3-599164006a9e7eb7328fc194c9bae1acbb2c887d.tar re3-599164006a9e7eb7328fc194c9bae1acbb2c887d.tar.gz re3-599164006a9e7eb7328fc194c9bae1acbb2c887d.tar.bz2 re3-599164006a9e7eb7328fc194c9bae1acbb2c887d.tar.lz re3-599164006a9e7eb7328fc194c9bae1acbb2c887d.tar.xz re3-599164006a9e7eb7328fc194c9bae1acbb2c887d.tar.zst re3-599164006a9e7eb7328fc194c9bae1acbb2c887d.zip |
Diffstat (limited to '')
-rw-r--r-- | src/vehicles/Plane.cpp | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/src/vehicles/Plane.cpp b/src/vehicles/Plane.cpp index 892bc0d5..273ac54a 100644 --- a/src/vehicles/Plane.cpp +++ b/src/vehicles/Plane.cpp @@ -1,6 +1,6 @@ #include "common.h" #include "main.h" -#include "patcher.h" + #include "General.h" #include "ModelIndices.h" #include "FileMgr.h" @@ -965,24 +965,3 @@ const CVector CPlane::FindDropOffCesnaCoordinates(void) { return pDropOffCesna-> bool CPlane::HasCesnaLanded(void) { return CesnaMissionStatus == CESNA_STATUS_LANDED; } bool CPlane::HasCesnaBeenDestroyed(void) { return CesnaMissionStatus == CESNA_STATUS_DESTROYED; } bool CPlane::HasDropOffCesnaBeenShotDown(void) { return DropOffCesnaMissionStatus == CESNA_STATUS_DESTROYED; } - -#include <new> - -class CPlane_ : public CPlane -{ -public: - void ctor(int32 id, uint8 CreatedBy) { ::new (this) CPlane(id, CreatedBy); } - void dtor(void) { CPlane::~CPlane(); } -}; - -STARTPATCHES - InjectHook(0x54B170, &CPlane_::ctor, PATCH_JUMP); - InjectHook(0x54B270, &CPlane_::dtor, PATCH_JUMP); - InjectHook(0x54B820, CPlane::InitPlanes, PATCH_JUMP); - InjectHook(0x54BCD0, CPlane::Shutdown, PATCH_JUMP); - InjectHook(0x54BD50, CPlane::LoadPath, PATCH_JUMP); - InjectHook(0x54BEC0, CPlane::UpdatePlanes, PATCH_JUMP); - InjectHook(0x54DE90, CPlane::TestRocketCollision, PATCH_JUMP); - InjectHook(0x54E000, CPlane::CreateIncomingCesna, PATCH_JUMP); - InjectHook(0x54E160, CPlane::CreateDropOffCesna, PATCH_JUMP); -ENDPATCHES |