forked from mirror/openmw-tes3mp
Fix spelling errors in comments.
This commit is contained in:
parent
d54ae58ec9
commit
b2e3fa70c2
2 changed files with 6 additions and 6 deletions
|
@ -27,7 +27,7 @@ namespace
|
||||||
|
|
||||||
namespace MWMechanics
|
namespace MWMechanics
|
||||||
{
|
{
|
||||||
// NOTE: determined empherically but probably need further tweaking
|
// NOTE: determined empirically but probably need further tweaking
|
||||||
static const int COUNT_BEFORE_STUCK = 20;
|
static const int COUNT_BEFORE_STUCK = 20;
|
||||||
static const int COUNT_BEFORE_RESET = 200;
|
static const int COUNT_BEFORE_RESET = 200;
|
||||||
static const int COUNT_EVADE = 7;
|
static const int COUNT_EVADE = 7;
|
||||||
|
@ -338,7 +338,7 @@ namespace MWMechanics
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// consider stuck only if position unchanges consequitively
|
// consider stuck only if position unchanges consecutively
|
||||||
if((mStuckCount++ % COUNT_BEFORE_STUCK) == 0)
|
if((mStuckCount++ % COUNT_BEFORE_STUCK) == 0)
|
||||||
mWalkState = State_Evade;
|
mWalkState = State_Evade;
|
||||||
// NOTE: mStuckCount is purposely not cleared here
|
// NOTE: mStuckCount is purposely not cleared here
|
||||||
|
|
|
@ -99,7 +99,7 @@ namespace MWScript
|
||||||
MWBase::Environment::get().getWorld()->rotateObject(ptr,ax,ay,angle);
|
MWBase::Environment::get().getWorld()->rotateObject(ptr,ax,ay,angle);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
throw std::runtime_error ("invalid ration axis: " + axis);
|
throw std::runtime_error ("invalid rotation axis: " + axis);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -128,7 +128,7 @@ namespace MWScript
|
||||||
runtime.push(Ogre::Radian(ptr.getCellRef().mPos.rot[2]).valueDegrees());
|
runtime.push(Ogre::Radian(ptr.getCellRef().mPos.rot[2]).valueDegrees());
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
throw std::runtime_error ("invalid ration axis: " + axis);
|
throw std::runtime_error ("invalid rotation axis: " + axis);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -157,7 +157,7 @@ namespace MWScript
|
||||||
runtime.push(Ogre::Radian(ptr.getRefData().getPosition().rot[2]).valueDegrees());
|
runtime.push(Ogre::Radian(ptr.getRefData().getPosition().rot[2]).valueDegrees());
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
throw std::runtime_error ("invalid ration axis: " + axis);
|
throw std::runtime_error ("invalid rotation axis: " + axis);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -186,7 +186,7 @@ namespace MWScript
|
||||||
runtime.push(ptr.getRefData().getPosition().pos[2]);
|
runtime.push(ptr.getRefData().getPosition().pos[2]);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
throw std::runtime_error ("invalid rotation axis: " + axis);
|
throw std::runtime_error ("invalid axis: " + axis);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue