From 9d5a1a9f6d048c7e7bbb3dce5c113e87379ec76f Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Thu, 20 Dec 2012 09:51:33 +0000 Subject: Fixed a bool evaluation warning in BlockDoor.h git-svn-id: http://mc-server.googlecode.com/svn/trunk@1083 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/Blocks/BlockDoor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/Blocks') diff --git a/source/Blocks/BlockDoor.h b/source/Blocks/BlockDoor.h index 37584895f..d2bb27901 100644 --- a/source/Blocks/BlockDoor.h +++ b/source/Blocks/BlockDoor.h @@ -37,7 +37,7 @@ public: virtual bool CanBeAt(cWorld * a_World, int a_BlockX, int a_BlockY, int a_BlockZ) override { - return a_World->GetBlock(a_BlockX, a_BlockY - 1, a_BlockZ); + return (a_World->GetBlock(a_BlockX, a_BlockY - 1, a_BlockZ) != E_BLOCK_AIR); } } ; -- cgit v1.2.3