From a9483dbdf1d88d597f096939e25053365da1a064 Mon Sep 17 00:00:00 2001 From: Emanuel Guevel Date: Sat, 3 Aug 2013 02:46:26 +0200 Subject: [PATCH] Show sneak indicator when sneaking Temporary solution, as the indicator should be shown only when the player is not detected by any other actor. --- apps/openmw/mwworld/player.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/openmw/mwworld/player.cpp b/apps/openmw/mwworld/player.cpp index 4d6f50ffd2..0d9399c616 100644 --- a/apps/openmw/mwworld/player.cpp +++ b/apps/openmw/mwworld/player.cpp @@ -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)