mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-25 16:46:17 +00:00
Changed: Warnings
--HG-- branch : develop
This commit is contained in:
parent
798fde40f6
commit
1b1e08b7f6
3 changed files with 4 additions and 4 deletions
|
@ -76,7 +76,7 @@ void CWaterHeightMap::updateUserPos()
|
|||
|
||||
nlassert(_Size != 0);
|
||||
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
|
||||
|
||||
|
|
|
@ -81,7 +81,7 @@ void CSampleBankManager::init(NLGEORGES::UFormElm *mixerConfig)
|
|||
{
|
||||
TFilteredBank fb;
|
||||
std::string bankName;
|
||||
NLGEORGES::UFormElm *realBank;
|
||||
NLGEORGES::UFormElm *realBank = NULL;
|
||||
realBank->getArrayNode(&realBank, j);
|
||||
|
||||
realBank->getValueByName(bankName, ".SampleBank");
|
||||
|
|
|
@ -2046,7 +2046,7 @@ int CLuaIHMRyzom::addShape(CLuaState &ls)
|
|||
|
||||
float x = 0.0f, y = 0.0f, z = 0.0f;
|
||||
float scale = 1.0f;
|
||||
string context,url,skeleton,texture = "";
|
||||
string context, url, skeleton, texture;
|
||||
bool highlight, transparency, collision = false;
|
||||
|
||||
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;
|
||||
y = UserEntity->pos().y;
|
||||
|
|
Loading…
Reference in a new issue