summaryrefslogtreecommitdiffstats
path: root/src/Entities/ProjectileEntity.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-01-17 11:11:17 +0100
committermadmaxoft <github@xoft.cz>2014-01-17 11:11:17 +0100
commitaec5200893e09f90cc43b61088b30364800b51c6 (patch)
treea5f60ae183abbd1239f5e6bef84c7f2682de9f60 /src/Entities/ProjectileEntity.cpp
parentMerge remote-tracking branch 'origin/customnames' (diff)
downloadcuberite-aec5200893e09f90cc43b61088b30364800b51c6.tar
cuberite-aec5200893e09f90cc43b61088b30364800b51c6.tar.gz
cuberite-aec5200893e09f90cc43b61088b30364800b51c6.tar.bz2
cuberite-aec5200893e09f90cc43b61088b30364800b51c6.tar.lz
cuberite-aec5200893e09f90cc43b61088b30364800b51c6.tar.xz
cuberite-aec5200893e09f90cc43b61088b30364800b51c6.tar.zst
cuberite-aec5200893e09f90cc43b61088b30364800b51c6.zip
Diffstat (limited to 'src/Entities/ProjectileEntity.cpp')
-rw-r--r--src/Entities/ProjectileEntity.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Entities/ProjectileEntity.cpp b/src/Entities/ProjectileEntity.cpp
index 76365076f..12ce9a303 100644
--- a/src/Entities/ProjectileEntity.cpp
+++ b/src/Entities/ProjectileEntity.cpp
@@ -358,7 +358,7 @@ void cProjectileEntity::HandlePhysics(float a_Dt, cChunk & a_Chunk)
m_UniqueID,
GetPosX(), GetPosY(), GetPosZ(),
GetSpeedX(), GetSpeedY(), GetSpeedZ(),
- GetRot().x, GetPitch()
+ GetYaw(), GetPitch()
);
}
@@ -369,7 +369,7 @@ void cProjectileEntity::HandlePhysics(float a_Dt, cChunk & a_Chunk)
void cProjectileEntity::SpawnOn(cClientHandle & a_Client)
{
// Default spawning - use the projectile kind to spawn an object:
- a_Client.SendSpawnObject(*this, m_ProjectileKind, 12, ANGLE_TO_PROTO(GetRot().x), ANGLE_TO_PROTO(GetPitch()));
+ a_Client.SendSpawnObject(*this, m_ProjectileKind, 12, ANGLE_TO_PROTO(GetYaw()), ANGLE_TO_PROTO(GetPitch()));
a_Client.SendEntityMetadata(*this);
}
@@ -406,7 +406,7 @@ cArrowEntity::cArrowEntity(cEntity * a_Creator, double a_X, double a_Y, double a
SetPitchFromSpeed();
LOGD("Created arrow %d with speed {%.02f, %.02f, %.02f} and rot {%.02f, %.02f}",
m_UniqueID, GetSpeedX(), GetSpeedY(), GetSpeedZ(),
- GetRot().x, GetPitch()
+ GetYaw(), GetPitch()
);
}