summaryrefslogtreecommitdiffstats
path: root/source/Blocks/BlockDoor.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-09-09 10:49:52 +0200
committermadmaxoft <github@xoft.cz>2013-09-09 10:49:52 +0200
commitb8d2d94d90f2021423e4cc9fdaa793e3c43b9130 (patch)
tree18a8b60e1d66c75df97d5e8c28d1519e90ac2203 /source/Blocks/BlockDoor.cpp
parentRemoved the "charging bow" debug message. (diff)
downloadcuberite-b8d2d94d90f2021423e4cc9fdaa793e3c43b9130.tar
cuberite-b8d2d94d90f2021423e4cc9fdaa793e3c43b9130.tar.gz
cuberite-b8d2d94d90f2021423e4cc9fdaa793e3c43b9130.tar.bz2
cuberite-b8d2d94d90f2021423e4cc9fdaa793e3c43b9130.tar.lz
cuberite-b8d2d94d90f2021423e4cc9fdaa793e3c43b9130.tar.xz
cuberite-b8d2d94d90f2021423e4cc9fdaa793e3c43b9130.tar.zst
cuberite-b8d2d94d90f2021423e4cc9fdaa793e3c43b9130.zip
Diffstat (limited to '')
-rw-r--r--source/Blocks/BlockDoor.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/source/Blocks/BlockDoor.cpp b/source/Blocks/BlockDoor.cpp
index 02cbd28e2..e71ccd368 100644
--- a/source/Blocks/BlockDoor.cpp
+++ b/source/Blocks/BlockDoor.cpp
@@ -3,7 +3,6 @@
#include "BlockDoor.h"
#include "../Item.h"
#include "../World.h"
-#include "../Doors.h"
#include "../Entities/Player.h"
@@ -26,7 +25,7 @@ void cBlockDoorHandler::OnDestroyed(cWorld * a_World, int a_BlockX, int a_BlockY
if (OldMeta & 8)
{
// Was upper part of door
- if (cDoors::IsDoor(a_World->GetBlock(a_BlockX, a_BlockY - 1, a_BlockZ)))
+ if (IsDoor(a_World->GetBlock(a_BlockX, a_BlockY - 1, a_BlockZ)))
{
a_World->FastSetBlock(a_BlockX, a_BlockY - 1, a_BlockZ, E_BLOCK_AIR, 0);
}
@@ -34,7 +33,7 @@ void cBlockDoorHandler::OnDestroyed(cWorld * a_World, int a_BlockX, int a_BlockY
else
{
// Was lower part
- if (cDoors::IsDoor(a_World->GetBlock(a_BlockX, a_BlockY + 1, a_BlockZ)))
+ if (IsDoor(a_World->GetBlock(a_BlockX, a_BlockY + 1, a_BlockZ)))
{
a_World->FastSetBlock(a_BlockX, a_BlockY + 1, a_BlockZ, E_BLOCK_AIR, 0);
}
@@ -49,7 +48,7 @@ void cBlockDoorHandler::OnUse(cWorld * a_World, cPlayer * a_Player, int a_BlockX
{
if (a_World->GetBlock(a_BlockX, a_BlockY, a_BlockZ) == E_BLOCK_WOODEN_DOOR)
{
- cDoors::ChangeDoor(a_World, a_BlockX, a_BlockY, a_BlockZ);
+ ChangeDoor(a_World, a_BlockX, a_BlockY, a_BlockZ);
}
}