mirror of
https://github.com/td512/re3.git
synced 2026-01-29 18:20:52 +00:00
Remove patches
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
#include "common.h"
|
||||
#include "patcher.h"
|
||||
|
||||
#include "Building.h"
|
||||
#include "Streaming.h"
|
||||
#include "Pools.h"
|
||||
@@ -20,18 +20,3 @@ CBuilding::ReplaceWithNewModel(int32 id)
|
||||
if(m_level == LEVEL_NONE || m_level == CGame::currLevel)
|
||||
CStreaming::RequestModel(id, STREAMFLAGS_DONT_REMOVE);
|
||||
}
|
||||
|
||||
#include <new>
|
||||
|
||||
class CBuilding_ : public CBuilding
|
||||
{
|
||||
public:
|
||||
CBuilding *ctor(void) { return ::new (this) CBuilding(); }
|
||||
void dtor(void) { CBuilding::~CBuilding(); }
|
||||
};
|
||||
|
||||
STARTPATCHES
|
||||
InjectHook(0x4057D0, &CBuilding_::ctor, PATCH_JUMP);
|
||||
InjectHook(0x405800, &CBuilding_::dtor, PATCH_JUMP);
|
||||
InjectHook(0x405850, &CBuilding::ReplaceWithNewModel, PATCH_JUMP);
|
||||
ENDPATCHES
|
||||
|
||||
Reference in New Issue
Block a user