summaryrefslogtreecommitdiffstats
path: root/src/BlockEntities/DispenserEntity.cpp
diff options
context:
space:
mode:
authorJoannisO <Joannis.Orlandos@gmail.com>2014-05-31 16:08:15 +0200
committerJoannisO <Joannis.Orlandos@gmail.com>2014-05-31 16:08:15 +0200
commitb436359237a9faa1dc5709e4359b73aa6faf4f78 (patch)
tree290b78443707ae53c06c573c8baf2c9ee9504059 /src/BlockEntities/DispenserEntity.cpp
parent- Prefixed all args with "a_" (diff)
downloadcuberite-b436359237a9faa1dc5709e4359b73aa6faf4f78.tar
cuberite-b436359237a9faa1dc5709e4359b73aa6faf4f78.tar.gz
cuberite-b436359237a9faa1dc5709e4359b73aa6faf4f78.tar.bz2
cuberite-b436359237a9faa1dc5709e4359b73aa6faf4f78.tar.lz
cuberite-b436359237a9faa1dc5709e4359b73aa6faf4f78.tar.xz
cuberite-b436359237a9faa1dc5709e4359b73aa6faf4f78.tar.zst
cuberite-b436359237a9faa1dc5709e4359b73aa6faf4f78.zip
Diffstat (limited to '')
-rw-r--r--src/BlockEntities/DispenserEntity.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/BlockEntities/DispenserEntity.cpp b/src/BlockEntities/DispenserEntity.cpp
index 799d41a1e..db1b405cd 100644
--- a/src/BlockEntities/DispenserEntity.cpp
+++ b/src/BlockEntities/DispenserEntity.cpp
@@ -198,7 +198,7 @@ void cDispenserEntity::DropSpenseFromSlot(cChunk & a_Chunk, int a_SlotNum)
void cDispenserEntity::SpawnProjectileFromDispenser(cChunk & a_Chunk, int & a_DispX, int & a_DispY, int & a_DispZ, cProjectileEntity::eKind a_kind)
{
- Vector3d Angle = GetProjectileLookVector(a_Chunk);
+ Vector3d Angle = GetShootVector(a_Chunk);
cChunk * DispChunk = a_Chunk.GetRelNeighborChunkAdjustCoords(a_DispX, a_DispZ);
double EntityX = 0.5 + (a_DispX + DispChunk->GetPosX() * cChunkDef::Width);
@@ -209,7 +209,7 @@ void cDispenserEntity::SpawnProjectileFromDispenser(cChunk & a_Chunk, int & a_Di
-Vector3d cDispenserEntity::GetProjectileLookVector(cChunk & a_Chunk)
+Vector3d cDispenserEntity::GetShootVector(cChunk & a_Chunk)
{
NIBBLETYPE Meta = a_Chunk.GetMeta(m_RelX, m_PosY, m_RelZ);
int Direction = 0;