mirror of
https://github.com/OpenMW/openmw.git
synced 2025-06-22 20:11:33 +00:00
the sgn function is no longer in the global namespace
This commit is contained in:
parent
1eb3d3e10e
commit
2be9405c96
1 changed files with 80 additions and 77 deletions
|
@ -13,12 +13,15 @@
|
||||||
#include <boost/graph/adjacency_list.hpp>
|
#include <boost/graph/adjacency_list.hpp>
|
||||||
#include "boost/tuple/tuple.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()
|
: mX(x),mY(y),mZ(z),mPathFinder()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
MWMechanics::AiTravel * MWMechanics::AiTravel::clone() const
|
AiTravel * AiTravel::clone() const
|
||||||
{
|
{
|
||||||
return new AiTravel(*this);
|
return new AiTravel(*this);
|
||||||
}
|
}
|
||||||
|
@ -29,7 +32,7 @@ float sgn(float a)
|
||||||
else return -1.;
|
else return -1.;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool MWMechanics::AiTravel::execute (const MWWorld::Ptr& actor)
|
bool AiTravel::execute (const MWWorld::Ptr& actor)
|
||||||
{
|
{
|
||||||
const ESM::Pathgrid *pathgrid =
|
const ESM::Pathgrid *pathgrid =
|
||||||
MWBase::Environment::get().getWorld()->getStore().get<ESM::Pathgrid>().search(*actor.getCell()->mCell);
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
int MWMechanics::AiTravel::getTypeId() const
|
int AiTravel::getTypeId() const
|
||||||
{
|
{
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue