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:
Emanuel Guevel 2013-08-03 02:46:26 +02:00
parent 8f8362d2c4
commit a9483dbdf1

View file

@ -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)