This commit is contained in:
Lwmte 2025-04-23 09:02:23 +02:00
parent f6845961ca
commit 8c11b4cda0
4 changed files with 11 additions and 0 deletions

View file

@ -17,6 +17,7 @@ TombEngine releases are located in this repository (alongside with Tomb Editor):
* Fixed HK sound effects.
* Fixed HK shots not being registered in statistics.
* Fixed distorted knee and elbow joint vertices.
* Fixed splash effects remaining in the level after reloading from the savegame.
* Fixed caustics not rendered correctly if texture compression was enabled.
* Fixed exclusion blend mode not working correctly.
* Fixed SSAO incorrectly applied through alpha blended textures.

View file

@ -543,6 +543,7 @@ void CleanUp()
ClearFootprints();
ClearDrips();
ClearRipples();
ClearSplashes();
ClearLaserBarrierEffects();
ClearLaserBeamEffects();
DisableSmokeParticles();

View file

@ -129,6 +129,14 @@ namespace TEN::Effects::Splash
}
}
void ClearSplashes()
{
SplashCount = 0;
for (auto& splash : SplashEffects)
splash = {};
}
void Splash(ItemInfo* item)
{
int probedRoomNumber = GetPointCollision(*item).GetRoomNumber();

View file

@ -60,5 +60,6 @@ namespace TEN::Effects::Splash
void SetupSplash(const SplashEffectSetup* const setup, int room);
void UpdateSplashes();
void ClearSplashes();
void Splash(ItemInfo* item);
}