mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-04-28 15:57:59 +03:00
Fixed #1557
This commit is contained in:
parent
5f402e380b
commit
faf17cd03a
2 changed files with 6 additions and 2 deletions
|
@ -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.
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue