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:
parent
20af7d89a2
commit
6a33170ca2
2 changed files with 2 additions and 2 deletions
|
@ -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.;
|
||||
|
|
|
@ -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.;
|
||||
|
|
Loading…
Reference in a new issue