X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fworld%2FBlock.hpp;fp=src%2Fworld%2FBlock.hpp;h=2eac5ff6ca13b688ad1892ec879181e87ce26bef;hb=dcd54cacda98c2c0f7cf0c7a9131fb858d8ee10a;hp=ea3de59b206e3ad7b90b9033db7506037bd24692;hpb=efc3c1ba52cbe0fc9a4010c37c2d7c7020a0b481;p=blank.git diff --git a/src/world/Block.hpp b/src/world/Block.hpp index ea3de59..2eac5ff 100644 --- a/src/world/Block.hpp +++ b/src/world/Block.hpp @@ -1,8 +1,9 @@ #ifndef BLANK_WORLD_BLOCK_HPP_ #define BLANK_WORLD_BLOCK_HPP_ +#include "../graphics/glm.hpp" + #include -#include namespace blank { @@ -86,7 +87,7 @@ struct Block { } static Face NormalFace(const glm::vec3 &norm) noexcept { - const glm::vec3 anorm(abs(norm)); + const glm::vec3 anorm(glm::abs(norm)); if (anorm.x > anorm.y) { if (anorm.x > anorm.z) { return norm.x > 0.0f ? FACE_RIGHT : FACE_LEFT;