mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-04-28 15:57:59 +03:00
Prevent log spam with fish swarm
This commit is contained in:
parent
b62c8d7c40
commit
6d38bb3617
1 changed files with 1 additions and 1 deletions
|
@ -147,7 +147,7 @@ namespace TEN::Entities::Creatures::TR3
|
||||||
float closestDist = INFINITY;
|
float closestDist = INFINITY;
|
||||||
for (auto& targetItem : g_Level.Items)
|
for (auto& targetItem : g_Level.Items)
|
||||||
{
|
{
|
||||||
if (!Objects.CheckID(targetItem.ObjectNumber) || targetItem.Index == itemNumber || targetItem.RoomNumber == NO_VALUE)
|
if (!Objects.CheckID(targetItem.ObjectNumber, true) || targetItem.Index == itemNumber || targetItem.RoomNumber == NO_VALUE)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (SameZone(&creature, &targetItem) && item.TriggerFlags < 0)
|
if (SameZone(&creature, &targetItem) && item.TriggerFlags < 0)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue