Show sneak indicator when sneaking

Temporary solution, as the indicator should be shown only when the
player is not detected by any other actor.
actorid
Emanuel Guevel 12 years ago
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…
Cancel
Save