mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-25 06:35:30 +00:00
Show sneak indicator when sneaking
Temporary solution, as the indicator should be shown only when the player is not detected by any other actor.
This commit is contained in:
parent
8f8362d2c4
commit
a9483dbdf1
@ -123,6 +123,9 @@ namespace MWWorld
|
||||
MWWorld::Ptr ptr = getPlayer();
|
||||
|
||||
MWWorld::Class::get (ptr).setStance (ptr, MWWorld::Class::Sneak, sneak);
|
||||
|
||||
// TODO show sneak indicator only when the player is not detected by any actor
|
||||
MWBase::Environment::get().getWindowManager()->setSneakVisibility(sneak);
|
||||
}
|
||||
|
||||
void Player::yaw(float yaw)
|
||||
|
Loading…
x
Reference in New Issue
Block a user