mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-03-02 21:19:39 +00:00
Fix GCC build warnings
This commit is contained in:
parent
45f4e69a19
commit
6a12c2b58b
3 changed files with 2 additions and 3 deletions
|
@ -119,7 +119,6 @@ bool AiFollow::execute (const MWWorld::Ptr& actor, CharacterController& characte
|
|||
auto followers = MWBase::Environment::get().getMechanicsManager()->getActorsFollowingByIndex(target);
|
||||
if (followers.size() >= 2 && followers.cbegin()->first != mFollowIndex)
|
||||
{
|
||||
osg::Vec3f::value_type maxSize = 0;
|
||||
for(auto& follower : followers)
|
||||
{
|
||||
auto halfExtent = MWBase::Environment::get().getWorld()->getHalfExtents(follower.second).y();
|
||||
|
|
|
@ -23,7 +23,7 @@ namespace MWPhysics
|
|||
int index0,
|
||||
const btCollisionObjectWrapper* colObj1Wrap,
|
||||
int partId1,
|
||||
int index1)
|
||||
int index1) override
|
||||
{
|
||||
if(cp.getDistance() <= 0.0f)
|
||||
overlapping = true;
|
||||
|
|
|
@ -41,7 +41,7 @@ namespace MWPhysics
|
|||
m_collisionFilterMask = me->getBroadphaseHandle()->m_collisionFilterMask;
|
||||
mVelocity = Misc::Convert::toBullet(velocity);
|
||||
}
|
||||
virtual btScalar addSingleResult(btManifoldPoint & contact, const btCollisionObjectWrapper * colObj0Wrap, int partId0, int index0, const btCollisionObjectWrapper * colObj1Wrap, int partId1, int index1)
|
||||
btScalar addSingleResult(btManifoldPoint & contact, const btCollisionObjectWrapper * colObj0Wrap, int partId0, int index0, const btCollisionObjectWrapper * colObj1Wrap, int partId1, int index1) override
|
||||
{
|
||||
if (isActor(colObj0Wrap->getCollisionObject()) && isActor(colObj1Wrap->getCollisionObject()))
|
||||
return 0.0;
|
||||
|
|
Loading…
Reference in a new issue