This commit is contained in:
Lwmte 2025-01-24 23:18:14 +01:00
parent 5f402e380b
commit faf17cd03a
2 changed files with 6 additions and 2 deletions

View file

@ -11,6 +11,8 @@ TombEngine releases are located in this repository (alongside with Tomb Editor):
* Fixed ricochet flashes after using explosive weapons. * Fixed ricochet flashes after using explosive weapons.
* Fixed incorrect flare draw in crawl state. * Fixed incorrect flare draw in crawl state.
* Fixed starfield remaining active in the next level, if next level does not have starfield specified. * Fixed starfield remaining active in the next level, if next level does not have starfield specified.
* Fixed HK ammo not being visible in the inventory.
* Fixed flickering rat emitter.
### New Features ### New Features
* Added a particle based waterfall emitter object and associated sprite slots. * Added a particle based waterfall emitter object and associated sprite slots.

View file

@ -485,7 +485,8 @@ namespace TEN::Renderer
if (rat->On) if (rat->On)
{ {
RendererMesh* mesh = GetMesh(Objects[ID_RATS_EMITTER].meshIndex + (rand() % 8)); int index = (GlobalCounter + i) % Objects[ID_RATS_EMITTER].nmeshes;
auto* mesh = GetMesh(Objects[ID_RATS_EMITTER].meshIndex + index);
for (int j = 0; j < mesh->Buckets.size(); j++) for (int j = 0; j < mesh->Buckets.size(); j++)
{ {
@ -561,7 +562,8 @@ namespace TEN::Renderer
if (rat->On) if (rat->On)
{ {
const auto& mesh = *GetMesh(Objects[ID_RATS_EMITTER].meshIndex + (rand() % 8)); int index = (GlobalCounter + i) % Objects[ID_RATS_EMITTER].nmeshes;
const auto& mesh = *GetMesh(Objects[ID_RATS_EMITTER].meshIndex + index);
auto world = rat->Transform; auto world = rat->Transform;
ReflectMatrixOptionally(world); ReflectMatrixOptionally(world);