1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-19 22:53:50 +00:00

More bugfix, but I don't like this one.

This commit is contained in:
gus 2013-04-01 17:44:06 +00:00
parent 20af7d89a2
commit 6a33170ca2
2 changed files with 2 additions and 2 deletions

View file

@ -26,7 +26,7 @@ namespace MWMechanics
return new AiTravel(*this);
}
float sgn(float a)
static float sgn(float a)
{
if(a>0) return 1.;
else return -1.;

View file

@ -23,7 +23,7 @@ namespace MWMechanics
return sqrt(float(a.mX - b.mX)*(a.mX - b.mX)+(a.mY - b.mY)*(a.mY - b.mY)+(a.mZ - b.mZ)*(a.mZ - b.mZ));
}
float sgn(float a)
static float sgn(float a)
{
if(a>0) return 1.;
else return -1.;