In file included from /home/strikker/otclient/src/client/thing.h:26:0,
from /home/strikker/otclient/src/client/animatedtext.h:29,
from /home/strikker/otclient/src/client/luafunctions.cpp:23:
/home/strikker/otclient/src/framework/../framework/graphics/framebuffer.h:67:26: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
const bool canUpdate();
^
/home/strikker/otclient/src/framework/../framework/graphics/framebuffer.h:78:29: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
const uint8_t flushTime();
^
In file included from /home/strikker/otclient/src/client/global.h:30:0,
from /home/strikker/otclient/src/client/declarations.h:28,
from /home/strikker/otclient/src/client/thing.h:28,
from /home/strikker/otclient/src/client/animatedtext.h:29,
from /home/strikker/otclient/src/client/luafunctions.cpp:23:
/home/strikker/otclient/src/client/position.h: In constructor ‘Position::Position()’:
/home/strikker/otclient/src/client/position.h:36:20: error: ‘_UI16_MAX’ was not declared in this scope
Position() : x(_UI16_MAX), y(_UI16_MAX), z(_UI8_MAX) {}
^~~~~~~~~
/home/strikker/otclient/src/client/position.h:36:48: error: ‘_UI8_MAX’ was not declared in this scope
Position() : x(_UI16_MAX), y(_UI16_MAX), z(_UI8_MAX) {}
^~~~~~~~
In file included from /home/strikker/otclient/src/client/global.h:30:0,
from /home/strikker/otclient/src/client/declarations.h:28,
from /home/strikker/otclient/src/client/thing.h:28,
from /home/strikker/otclient/src/client/animatedtext.h:29,
from /home/strikker/otclient/src/client/luafunctions.cpp:23:
/home/strikker/otclient/src/client/position.h: In member function ‘bool Position::isMapPosition() const’:
/home/strikker/otclient/src/client/position.h:195:63: warning: comparison is always true due to limited range of data type [-Wtype-limits]
bool isMapPosition() const { return x >= 0 && y >= 0 && z >= 0 && x < _UI16_MAX&& y < _UI16_MAX&& z <= Otc::MAX_Z; }
~~^~~~
/home/strikker/otclient/src/client/position.h:195:75: error: ‘_UI16_MAX’ was not declared in this scope
bool isMapPosition() const { return x >= 0 && y >= 0 && z >= 0 && x < _UI16_MAX&& y < _UI16_MAX&& z <= Otc::MAX_Z; }
^~~~~~~~~
/home/strikker/otclient/src/client/position.h: In member function ‘bool Position::isValid() const’:
/home/strikker/otclient/src/client/position.h:196:42: error: ‘_UI16_MAX’ was not declared in this scope
bool isValid() const { return !(x == _UI16_MAX && y == _UI16_MAX && z == _UI8_MAX); }
^~~~~~~~~
/home/strikker/otclient/src/client/position.h:196:78: error: ‘_UI8_MAX’ was not declared in this scope
bool isValid() const { return !(x == _UI16_MAX && y == _UI16_MAX && z == _UI8_MAX); }
^~~~~~~~
/home/strikker/otclient/src/client/position.h: In member function ‘bool Position::coveredUp(int8)’:
/home/strikker/otclient/src/client/position.h:269:29: error: ‘_UI16_MAX’ was not declared in this scope
if(nx >= 0 && nx <= _UI16_MAX && ny >= 0 && ny <= _UI16_MAX && nz >= 0 && nz <= Otc::MAX_Z) {
^~~~~~~~~
/home/strikker/otclient/src/client/position.h: In member function ‘bool Position::coveredDown(int8)’:
/home/strikker/otclient/src/client/position.h:281:29: error: ‘_UI16_MAX’ was not declared in this scope
if(nx >= 0 && nx <= _UI16_MAX && ny >= 0 && ny <= _UI16_MAX && nz >= 0 && nz <= Otc::MAX_Z) {
^~~~~~~~~
In file included from /home/strikker/otclient/src/client/thing.h:29:0,
from /home/strikker/otclient/src/client/animatedtext.h:29,
from /home/strikker/otclient/src/client/luafunctions.cpp:23:
/home/strikker/otclient/src/client/thingtype.h: In member function ‘bool ThingType::isOpaque()’:
/home/strikker/otclient/src/client/thingtype.h:211:61: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
bool isOpaque() { return isFullGround() || hasTexture() && getTexture(0)->isOpaque(); }
~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/strikker/otclient/src/client/mapview.h:31:0,
from /home/strikker/otclient/src/client/creature.h:31,
from /home/strikker/otclient/src/client/luafunctions.cpp:26:
/home/strikker/otclient/src/client/lightview.h: At global scope:
/home/strikker/otclient/src/client/lightview.h:34:35: error: ‘_UI8_MAX’ was not declared in this scope
MAX_AMBIENT_LIGHT_INTENSITY = _UI8_MAX
^~~~~~~~
/home/strikker/otclient/src/client/lightview.h: In constructor ‘PositionLight::PositionLight(int8, int8, float)’:
/home/strikker/otclient/src/client/lightview.h:45:47: error: ‘_UI8_MAX’ was not declared in this scope
Position::x = x, Position::y = y, z = _UI8_MAX;
^~~~~~~~
In file included from /home/strikker/otclient/src/client/creature.h:34:0,
from /home/strikker/otclient/src/client/luafunctions.cpp:26:
/home/strikker/otclient/src/client/tile.h: At global scope:
/home/strikker/otclient/src/client/tile.h:93:32: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
const int getDrawElevation() { return m_drawElevation; }
^
/home/strikker/otclient/src/client/tile.h:155:37: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
const bool hasBorderShadowColor() { return m_borderShadowColor != Color::white; }
^
/home/strikker/otclient/src/client/tile.h:157:26: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
const bool isCovered() { return m_covered; };
^
/home/strikker/otclient/src/client/tile.h:158:27: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
const bool blockLight() { return m_countFlag.hasNoWalkableEdge && !hasGround(); };
^
/home/strikker/otclient/src/client/tile.h:159:26: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
const bool hasGround() { return getGround() != nullptr; };
^
CMakeFiles/otclient.dir/build.make:2534: recipe for target 'CMakeFiles/otclient.dir/src/client/luafunctions.cpp.o' failed
make[2]: *** [CMakeFiles/otclient.dir/src/client/luafunctions.cpp.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/otclient.dir/all' failed
make[1]: *** [CMakeFiles/otclient.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2