Fixed a bool evaluation warning in BlockDoor.h

git-svn-id: http://mc-server.googlecode.com/svn/trunk@1083 0a769ca7-a7f5-676a-18bf-c427514a06d6
master
madmaxoft@gmail.com 2012-12-20 09:51:33 +00:00
parent e176745781
commit 9d5a1a9f6d
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
} ;