mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-04-28 15:57:59 +03:00
Fixed underwater dust particles overflowing when camera is underwater
This commit is contained in:
parent
5c230aaeae
commit
c49619d80e
2 changed files with 2 additions and 1 deletions
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue