forked from mirror/openmw-tes3mp
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
1 changed files with 3 additions and 0 deletions
|
@ -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…
Reference in a new issue