Fixed minor bug in NoiseBase & Vector4 (typo)
This commit is contained in:
parent
90faf844ed
commit
5fde943d9e
|
|
@ -361,7 +361,7 @@ NzVector4<T> operator/(T scale, const NzVector4<T>& vec)
|
||||||
throw std::domain_error(ss.ToString());
|
throw std::domain_error(ss.ToString());
|
||||||
}
|
}
|
||||||
|
|
||||||
return NzVector3<T>(scale / vec.x, scale / vec.y, scale / vec.z, scale / vec.w);
|
return NzVector4<T>(scale / vec.x, scale / vec.y, scale / vec.z, scale / vec.w);
|
||||||
}
|
}
|
||||||
|
|
||||||
#include <Nazara/Core/DebugOff.hpp>
|
#include <Nazara/Core/DebugOff.hpp>
|
||||||
|
|
|
||||||
|
|
@ -17,8 +17,8 @@ NzNoiseBase::NzNoiseBase(int seed)
|
||||||
|
|
||||||
SetNewSeed(seed);
|
SetNewSeed(seed);
|
||||||
|
|
||||||
for(int i(0) ; i < 256 ; i++)
|
for(int i(0) ; i < 512 ; i++)
|
||||||
perm[i] = i;
|
perm[i] = i & 255;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue