Fixed underwater dust particles overflowing when camera is underwater

This commit is contained in:
Lwmte 2025-03-13 18:48:17 +01:00
parent 5c230aaeae
commit c49619d80e
2 changed files with 2 additions and 1 deletions

View file

@ -15,6 +15,7 @@ TombEngine releases are located in this repository (alongside with Tomb Editor):
* Fixed ricochet flashes after using explosive weapons.
* Fixed incorrect flare draw in crawl state.
* Fixed starfield remaining active in the next level if it does not have a starfield specified.
* Fixed underwater dust particles overflowing when camera is underwater.
* Fixed wetness player attribute not being preserved in savegames.
* Fixed invisible HK ammo in the inventory.
* Fixed flickering rat emitter.

View file

@ -526,7 +526,7 @@ namespace TEN::Effects::Environment
if (!IsPointInRoom(pos, roomNumber))
roomNumber = FindRoomNumber(pos, Camera.pos.RoomNumber, true);
if (roomNumber == NO_VALUE)
if (!IsPointInRoom(pos, roomNumber) || roomNumber == NO_VALUE)
continue;
// Check if water room.