mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-04-28 15:57:59 +03:00
Fix bridges moving the player when the player is underwater
This commit is contained in:
parent
0bb9af9894
commit
62ce2f043d
2 changed files with 3 additions and 1 deletions
|
@ -6,6 +6,7 @@ TombEngine releases are located in this repository (alongside with Tomb Editor):
|
|||
## [Version 1.7.X] (link to release) - yyyy-mm-dd
|
||||
|
||||
### Bug fixes
|
||||
* Fixed bridges moving the player when the player is underwater.
|
||||
* Fixed trigger triggerer not working.
|
||||
* Fixed display pickup numeric string not being interpolated in high framerate mode.
|
||||
* Fixed two block platform room portal traversal failing in some cases.
|
||||
|
|
|
@ -892,7 +892,8 @@ void CollideBridgeItems(ItemInfo& item, CollisionInfo& coll, PointCollisionData&
|
|||
auto deltaPose = Pose(deltaPos, deltaOrient);
|
||||
|
||||
// Item is grounded and bridge position changed; set shift.
|
||||
if (deltaPose != Pose::Zero && !item.Animation.IsAirborne)
|
||||
if (deltaPose != Pose::Zero && !item.Animation.IsAirborne &&
|
||||
item.IsLara() ? (GetLaraInfo(item).Control.WaterStatus != WaterStatus::Underwater && GetLaraInfo(item).Control.WaterStatus != WaterStatus::FlyCheat) : true)
|
||||
{
|
||||
const auto& bridgePos = bridgeItem.Pose.Position;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue