1
0

Fixed stupid mistax in conditional

boats can't be placed if the face is not block_face_none and not block_face_YM, not if it is only not one.
This commit is contained in:
worktycho 2014-02-10 17:59:17 +00:00
parent 1d51521f80
commit 23f69bc093

View File

@ -1,4 +1,3 @@
// ItemBoat.h // ItemBoat.h
// Declares the various boat ItemHandlers // Declares the various boat ItemHandlers
@ -31,7 +30,7 @@ public:
virtual bool OnItemUse(cWorld * a_World, cPlayer * a_Player, const cItem & a_Item, int a_BlockX, int a_BlockY, int a_BlockZ, eBlockFace a_Dir) override virtual bool OnItemUse(cWorld * a_World, cPlayer * a_Player, const cItem & a_Item, int a_BlockX, int a_BlockY, int a_BlockZ, eBlockFace a_Dir) override
{ {
if (a_Dir != BLOCK_FACE_YM || a_Dir != BLOCK_FACE_NONE) if (a_Dir != BLOCK_FACE_YM && a_Dir != BLOCK_FACE_NONE)
{ {
return false; return false;
} }