Skip to content

Commit

Permalink
add missing mesh updates for lara
Browse files Browse the repository at this point in the history
fixes EE-461
  • Loading branch information
stohrendorf committed Mar 19, 2022
1 parent d4aa0f9 commit 6c3ef00
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/engine/objects/laraobject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,9 @@ void LaraObject::handleLaraStateDiving()
updateFloorHeight(0_len);
updateLarasWeaponsStatus();
getWorld().handleCommandSequence(collisionInfo.mid.floor.lastCommandSequenceOrDeath, false);

drawRoutine();
applyTransform();
}

void LaraObject::handleLaraStateSwimming()
Expand Down Expand Up @@ -294,6 +297,9 @@ void LaraObject::handleLaraStateSwimming()
updateFloorHeight(core::DefaultCollisionRadius);
updateLarasWeaponsStatus();
getWorld().handleCommandSequence(collisionInfo.mid.floor.lastCommandSequenceOrDeath, false);

drawRoutine();
applyTransform();
}

void LaraObject::placeOnFloor(const CollisionInfo& collisionInfo)
Expand Down

0 comments on commit 6c3ef00

Please sign in to comment.