mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-26 09:35:28 +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::Ptr ptr = getPlayer();
|
||||||
|
|
||||||
MWWorld::Class::get (ptr).setStance (ptr, MWWorld::Class::Sneak, sneak);
|
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)
|
void Player::yaw(float yaw)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user