mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-05 06:40:09 +00:00
Remove more comments
This commit is contained in:
parent
6fce49bfb5
commit
08d5aaf0fc
@ -67,7 +67,7 @@ namespace MWMechanics
|
|||||||
AiWander::WanderState mState;
|
AiWander::WanderState mState;
|
||||||
|
|
||||||
unsigned short mIdleAnimation;
|
unsigned short mIdleAnimation;
|
||||||
std::vector<unsigned short> mBadIdles; //Idle animations that when called cause errors
|
std::vector<unsigned short> mBadIdles; // Idle animations that when called cause errors
|
||||||
|
|
||||||
PathFinder mPathFinder;
|
PathFinder mPathFinder;
|
||||||
|
|
||||||
@ -393,16 +393,13 @@ namespace MWMechanics
|
|||||||
short unsigned& idleAnimation = storage.mIdleAnimation;
|
short unsigned& idleAnimation = storage.mIdleAnimation;
|
||||||
idleAnimation = getRandomIdle();
|
idleAnimation = getRandomIdle();
|
||||||
|
|
||||||
// If we should be moving
|
|
||||||
if (!idleAnimation && mDistance)
|
if (!idleAnimation && mDistance)
|
||||||
{
|
{
|
||||||
storage.mState = Wander_MoveNow;
|
storage.mState = Wander_MoveNow;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// If we aren't going to just stand
|
|
||||||
if(idleAnimation)
|
if(idleAnimation)
|
||||||
{
|
{
|
||||||
// If the idle animation actually exists
|
|
||||||
if(std::find(storage.mBadIdles.begin(), storage.mBadIdles.end(), idleAnimation)==storage.mBadIdles.end())
|
if(std::find(storage.mBadIdles.begin(), storage.mBadIdles.end(), idleAnimation)==storage.mBadIdles.end())
|
||||||
{
|
{
|
||||||
if(!playIdle(actor, idleAnimation))
|
if(!playIdle(actor, idleAnimation))
|
||||||
@ -416,7 +413,6 @@ namespace MWMechanics
|
|||||||
// Recreate vanilla (broken?) behavior of resetting start time of AIWander:
|
// Recreate vanilla (broken?) behavior of resetting start time of AIWander:
|
||||||
mStartTime = MWBase::Environment::get().getWorld()->getTimeStamp();
|
mStartTime = MWBase::Environment::get().getWorld()->getTimeStamp();
|
||||||
storage.mState = Wander_IdleNow;
|
storage.mState = Wander_IdleNow;
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void AiWander::evadeObstacles(const MWWorld::Ptr& actor, AiWanderStorage& storage, float duration)
|
void AiWander::evadeObstacles(const MWWorld::Ptr& actor, AiWanderStorage& storage, float duration)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user