the sgn function is no longer in the global namespace

This commit is contained in:
gus 2013-04-01 15:44:08 +00:00
parent 1eb3d3e10e
commit 2be9405c96

View file

@ -13,12 +13,15 @@
#include <boost/graph/adjacency_list.hpp>
#include "boost/tuple/tuple.hpp"
MWMechanics::AiTravel::AiTravel(float x, float y, float z)
namespace MWMechanics
{
AiTravel::AiTravel(float x, float y, float z)
: mX(x),mY(y),mZ(z),mPathFinder()
{
}
MWMechanics::AiTravel * MWMechanics::AiTravel::clone() const
AiTravel * AiTravel::clone() const
{
return new AiTravel(*this);
}
@ -29,7 +32,7 @@ float sgn(float a)
else return -1.;
}
bool MWMechanics::AiTravel::execute (const MWWorld::Ptr& actor)
bool AiTravel::execute (const MWWorld::Ptr& actor)
{
const ESM::Pathgrid *pathgrid =
MWBase::Environment::get().getWorld()->getStore().get<ESM::Pathgrid>().search(*actor.getCell()->mCell);
@ -96,9 +99,9 @@ bool MWMechanics::AiTravel::execute (const MWWorld::Ptr& actor)
return false;
}
int MWMechanics::AiTravel::getTypeId() const
int AiTravel::getTypeId() const
{
return 1;
}
}