mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-22 23:26:15 +00:00
Changed: Warnings
This commit is contained in:
parent
65be422fb7
commit
c9413d7b63
3 changed files with 4 additions and 4 deletions
|
@ -76,7 +76,7 @@ void CWaterHeightMap::updateUserPos()
|
||||||
|
|
||||||
nlassert(_Size != 0);
|
nlassert(_Size != 0);
|
||||||
if ((uint) x == _X && (uint) y == _Y) return;
|
if ((uint) x == _X && (uint) y == _Y) return;
|
||||||
if ((uint) abs((long int)(x - _X)) < _Size && (uint) abs((long int)(y - _Y)) < _Size) // are there common pixels with the previous location?
|
if ((uint) std::abs((sint)(x - _X)) < _Size && (uint) std::abs((sint)(y - _Y)) < _Size) // are there common pixels with the previous location?
|
||||||
{
|
{
|
||||||
// compute zone
|
// compute zone
|
||||||
|
|
||||||
|
|
|
@ -81,7 +81,7 @@ void CSampleBankManager::init(NLGEORGES::UFormElm *mixerConfig)
|
||||||
{
|
{
|
||||||
TFilteredBank fb;
|
TFilteredBank fb;
|
||||||
std::string bankName;
|
std::string bankName;
|
||||||
NLGEORGES::UFormElm *realBank;
|
NLGEORGES::UFormElm *realBank = NULL;
|
||||||
realBank->getArrayNode(&realBank, j);
|
realBank->getArrayNode(&realBank, j);
|
||||||
|
|
||||||
realBank->getValueByName(bankName, ".SampleBank");
|
realBank->getValueByName(bankName, ".SampleBank");
|
||||||
|
|
|
@ -2046,7 +2046,7 @@ int CLuaIHMRyzom::addShape(CLuaState &ls)
|
||||||
|
|
||||||
float x = 0.0f, y = 0.0f, z = 0.0f;
|
float x = 0.0f, y = 0.0f, z = 0.0f;
|
||||||
float scale = 1.0f;
|
float scale = 1.0f;
|
||||||
string context,url,skeleton,texture = "";
|
string context, url, skeleton, texture;
|
||||||
bool highlight, transparency, collision = false;
|
bool highlight, transparency, collision = false;
|
||||||
|
|
||||||
if (ls.getTop() >= 2)
|
if (ls.getTop() >= 2)
|
||||||
|
@ -2068,7 +2068,7 @@ int CLuaIHMRyzom::addShape(CLuaState &ls)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (x == 0 && y == 0)
|
if (x == 0.f && y == 0.f)
|
||||||
{
|
{
|
||||||
x = UserEntity->pos().x;
|
x = UserEntity->pos().x;
|
||||||
y = UserEntity->pos().y;
|
y = UserEntity->pos().y;
|
||||||
|
|
Loading…
Reference in a new issue