summaryrefslogtreecommitdiff
path: root/src/weapons/Explosion.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-04-26 22:03:15 +0300
committerSergeanur <s.anureev@yandex.ua>2020-04-26 22:03:15 +0300
commitf0890b11122291a22d6a65f349281cf1aed49bd0 (patch)
tree3b418b522c5fd097abac916693e59808ea4f5b4f /src/weapons/Explosion.cpp
parent3e460d94acd6e08301b0be2d4de58fe8f65aff57 (diff)
parent4dc2f307910c6d5dcf3c910b3da2e2d943ac1003 (diff)
Merge branch 'master' into MoreLanguages
# Conflicts: # src/core/Frontend.cpp # src/core/MenuScreens.h # src/render/Font.cpp # src/render/Font.h # src/text/Messages.cpp # src/text/Text.cpp
Diffstat (limited to 'src/weapons/Explosion.cpp')
-rw-r--r--src/weapons/Explosion.cpp19
1 files changed, 3 insertions, 16 deletions
diff --git a/src/weapons/Explosion.cpp b/src/weapons/Explosion.cpp
index 3d00052a..d0a68279 100644
--- a/src/weapons/Explosion.cpp
+++ b/src/weapons/Explosion.cpp
@@ -1,5 +1,5 @@
#include "common.h"
-#include "patcher.h"
+
#include "Automobile.h"
#include "Bike.h"
#include "Camera.h"
@@ -19,7 +19,7 @@
#include "WaterLevel.h"
#include "World.h"
-CExplosion(&gaExplosion)[NUM_EXPLOSIONS] = *(CExplosion(*)[NUM_EXPLOSIONS])*(uintptr*)0x64E208;
+CExplosion gaExplosion[NUM_EXPLOSIONS];
// these two were not initialised in original code, I'm really not sure what were they meant to be
RwRGBA colMedExpl = { 0, 0, 0, 0 };
@@ -457,17 +457,4 @@ CExplosion::RemoveAllExplosionsInArea(CVector pos, float radius)
gaExplosion[i].m_nIteration = 0;
}
}
-}
-
-STARTPATCHES
- InjectHook(0x559030, &CExplosion::Initialise, PATCH_JUMP);
- InjectHook(0x559100, &CExplosion::Shutdown, PATCH_JUMP);
- InjectHook(0x559140, &CExplosion::GetExplosionActiveCounter, PATCH_JUMP);
- InjectHook(0x559160, &CExplosion::ResetExplosionActiveCounter, PATCH_JUMP);
- InjectHook(0x559180, &CExplosion::GetExplosionType, PATCH_JUMP);
- InjectHook(0x5591A0, &CExplosion::GetExplosionPosition, PATCH_JUMP);
- InjectHook(0x5591C0, &CExplosion::AddExplosion, PATCH_JUMP);
- InjectHook(0x55A0C0, &CExplosion::Update, PATCH_JUMP);
- InjectHook(0x55AC80, &CExplosion::TestForExplosionInArea, PATCH_JUMP);
- InjectHook(0x55AD40, &CExplosion::RemoveAllExplosionsInArea, PATCH_JUMP);
-ENDPATCHES \ No newline at end of file
+} \ No newline at end of file