mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-09-24 04:11:50 -04:00
Merge branch 'namingiseverything' into 'master'
Rename updateState() back into updateWeaponState() See merge request OpenMW/openmw!2202
This commit is contained in:
commit
299bd019df
@ -1110,7 +1110,7 @@ bool CharacterController::updateCarriedLeftVisible(const int weaptype) const
|
|||||||
return mAnimation->updateCarriedLeftVisible(weaptype);
|
return mAnimation->updateCarriedLeftVisible(weaptype);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CharacterController::updateState(CharacterState idle)
|
bool CharacterController::updateWeaponState(CharacterState idle)
|
||||||
{
|
{
|
||||||
const auto world = MWBase::Environment::get().getWorld();
|
const auto world = MWBase::Environment::get().getWorld();
|
||||||
auto& prng = world->getPrng();
|
auto& prng = world->getPrng();
|
||||||
@ -2253,7 +2253,7 @@ void CharacterController::update(float duration)
|
|||||||
|
|
||||||
if (!mSkipAnim)
|
if (!mSkipAnim)
|
||||||
{
|
{
|
||||||
refreshCurrentAnims(idlestate, movestate, jumpstate, updateState(idlestate));
|
refreshCurrentAnims(idlestate, movestate, jumpstate, updateWeaponState(idlestate));
|
||||||
updateIdleStormState(inwater);
|
updateIdleStormState(inwater);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -201,7 +201,7 @@ class CharacterController : public MWRender::Animation::TextKeyListener
|
|||||||
|
|
||||||
void clearAnimQueue(bool clearPersistAnims = false);
|
void clearAnimQueue(bool clearPersistAnims = false);
|
||||||
|
|
||||||
bool updateState(CharacterState idle);
|
bool updateWeaponState(CharacterState idle);
|
||||||
void updateIdleStormState(bool inwater) const;
|
void updateIdleStormState(bool inwater) const;
|
||||||
|
|
||||||
std::string chooseRandomAttackAnimation() const;
|
std::string chooseRandomAttackAnimation() const;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user