summaryrefslogtreecommitdiffstats
path: root/src/objects
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-11-19 16:23:52 +0100
committeraap <aap@papnet.eu>2020-11-19 16:23:52 +0100
commit02c7f8381b81732645ed92fda0c5a66d0f1db265 (patch)
treed87d414e03af11fdaae5f197378a1906833edbab /src/objects
parentMerge branch 'master' of github.com:GTAmodding/re3 (diff)
downloadre3-02c7f8381b81732645ed92fda0c5a66d0f1db265.tar
re3-02c7f8381b81732645ed92fda0c5a66d0f1db265.tar.gz
re3-02c7f8381b81732645ed92fda0c5a66d0f1db265.tar.bz2
re3-02c7f8381b81732645ed92fda0c5a66d0f1db265.tar.lz
re3-02c7f8381b81732645ed92fda0c5a66d0f1db265.tar.xz
re3-02c7f8381b81732645ed92fda0c5a66d0f1db265.tar.zst
re3-02c7f8381b81732645ed92fda0c5a66d0f1db265.zip
Diffstat (limited to 'src/objects')
-rw-r--r--src/objects/ParticleObject.cpp6
-rw-r--r--src/objects/ParticleObject.h2
2 files changed, 8 insertions, 0 deletions
diff --git a/src/objects/ParticleObject.cpp b/src/objects/ParticleObject.cpp
index a8afaf6c..71f223d7 100644
--- a/src/objects/ParticleObject.cpp
+++ b/src/objects/ParticleObject.cpp
@@ -8,6 +8,7 @@
#include "Camera.h"
#include "Game.h"
#include "DMAudio.h"
+#include "screendroplets.h"
CParticleObject gPObjectArray[MAX_PARTICLEOBJECTS];
@@ -18,6 +19,8 @@ CParticleObject *CParticleObject::pUnusedListHead;
CAudioHydrant List[MAX_AUDIOHYDRANTS];
+CAudioHydrant *CAudioHydrant::Get(int n) { return &List[n]; }
+
bool
CAudioHydrant::Add(CParticleObject *particleobject)
{
@@ -247,6 +250,9 @@ CParticleObject::AddObject(uint16 type, CVector const &pos, CVector const &targe
pobj->m_nSkipFrames = 3;
#endif
pobj->m_nCreationChance = 0;
+#ifdef SCREEN_DROPLETS
+ ScreenDroplets::RegisterSplash(pobj);
+#endif
break;
}
diff --git a/src/objects/ParticleObject.h b/src/objects/ParticleObject.h
index 34a672bb..e4e7fcd2 100644
--- a/src/objects/ParticleObject.h
+++ b/src/objects/ParticleObject.h
@@ -103,4 +103,6 @@ public:
static bool Add (CParticleObject *particleobject);
static void Remove(CParticleObject *particleobject);
+
+ static CAudioHydrant *Get(int n); // for neo screen droplets
}; \ No newline at end of file