summaryrefslogtreecommitdiffstats
path: root/src/Defines.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-07-21 18:07:51 +0200
committermadmaxoft <github@xoft.cz>2014-07-21 18:07:51 +0200
commitdd0ab044810d87dc4233a652087808638c696d94 (patch)
treed060243d62dedcf89e993b9316b3cd2ea9beefbf /src/Defines.h
parentCheckBasicStyle: Added a lua shebang. (diff)
downloadcuberite-dd0ab044810d87dc4233a652087808638c696d94.tar
cuberite-dd0ab044810d87dc4233a652087808638c696d94.tar.gz
cuberite-dd0ab044810d87dc4233a652087808638c696d94.tar.bz2
cuberite-dd0ab044810d87dc4233a652087808638c696d94.tar.lz
cuberite-dd0ab044810d87dc4233a652087808638c696d94.tar.xz
cuberite-dd0ab044810d87dc4233a652087808638c696d94.tar.zst
cuberite-dd0ab044810d87dc4233a652087808638c696d94.zip
Diffstat (limited to 'src/Defines.h')
-rw-r--r--src/Defines.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Defines.h b/src/Defines.h
index f095069d9..9f66cbf9b 100644
--- a/src/Defines.h
+++ b/src/Defines.h
@@ -470,7 +470,7 @@ inline void AddFaceDirection(int & a_BlockX, unsigned char & a_BlockY, int & a_B
{
int Y = a_BlockY;
AddFaceDirection(a_BlockX, Y, a_BlockZ, a_BlockFace, a_bInverse);
- a_BlockY = Clamp<unsigned char>(Y, 0, 255);
+ a_BlockY = Clamp<unsigned char>((unsigned char)Y, 0, 255);
}