mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-21 21:39:40 +00:00
Issue #314: Playing drink sound when using a potion
This commit is contained in:
parent
8b08928dae
commit
0da3f2cb59
1 changed files with 5 additions and 1 deletions
|
@ -157,8 +157,12 @@ namespace MWClass
|
||||||
|
|
||||||
MWWorld::Ptr actor = MWBase::Environment::get().getWorld()->getPlayer().getPlayer();
|
MWWorld::Ptr actor = MWBase::Environment::get().getWorld()->getPlayer().getPlayer();
|
||||||
|
|
||||||
return boost::shared_ptr<MWWorld::Action> (
|
boost::shared_ptr<MWWorld::Action> action (
|
||||||
new MWWorld::ActionApply (actor, ref->base->mId));
|
new MWWorld::ActionApply (actor, ref->base->mId));
|
||||||
|
|
||||||
|
action->setSound ("Drink");
|
||||||
|
|
||||||
|
return action;
|
||||||
}
|
}
|
||||||
|
|
||||||
MWWorld::Ptr
|
MWWorld::Ptr
|
||||||
|
|
Loading…
Reference in a new issue