summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortonibm19 <tonibm19@gmail.com>2013-10-28 20:58:50 +0100
committertonibm19 <tonibm19@gmail.com>2013-10-28 20:58:50 +0100
commit1841d779525de60143b693a1f1eb56c831639ea9 (patch)
tree549a4163e8c0611fcad0c36873edae491975a4df
parentAdded random chicken spawn when throwing an egg (diff)
downloadcuberite-1841d779525de60143b693a1f1eb56c831639ea9.tar
cuberite-1841d779525de60143b693a1f1eb56c831639ea9.tar.gz
cuberite-1841d779525de60143b693a1f1eb56c831639ea9.tar.bz2
cuberite-1841d779525de60143b693a1f1eb56c831639ea9.tar.lz
cuberite-1841d779525de60143b693a1f1eb56c831639ea9.tar.xz
cuberite-1841d779525de60143b693a1f1eb56c831639ea9.tar.zst
cuberite-1841d779525de60143b693a1f1eb56c831639ea9.zip
Diffstat (limited to '')
-rw-r--r--source/Entities/ProjectileEntity.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/source/Entities/ProjectileEntity.cpp b/source/Entities/ProjectileEntity.cpp
index e33066ab0..07b757d6c 100644
--- a/source/Entities/ProjectileEntity.cpp
+++ b/source/Entities/ProjectileEntity.cpp
@@ -1,4 +1,3 @@
-
// ProjectileEntity.cpp
// Implements the cProjectileEntity class representing the common base class for projectiles, as well as individual projectile types
@@ -247,8 +246,6 @@ void cProjectileEntity::OnHitSolidBlock(const Vector3d & a_HitPos, char a_HitFac
SetPosition(a_HitPos);
SetSpeed(0, 0, 0);
-
-
// DEBUG:
LOGD("Projectile %d: pos {%.02f, %.02f, %.02f}, hit solid block at face %d",
m_UniqueID,
@@ -483,10 +480,10 @@ void cThrownEggEntity::OnHitSolidBlock(const Vector3d & a_HitPos, char a_HitFace
else if (m_World->GetTickRandomNumber(32) == 1)
{
m_World->SpawnMob(a_HitPos.x, a_HitPos.y, a_HitPos.z, cMonster::mtChicken);
- m_World->SpawnMob(a_HitPos.x, a_HitPos.y, a_HitPos.z, cMonster::mtChicken);
+ m_World->SpawnMob(a_HitPos.x, a_HitPos.y, a_HitPos.z, cMonster::mtChicken);
m_World->SpawnMob(a_HitPos.x, a_HitPos.y, a_HitPos.z, cMonster::mtChicken);
m_World->SpawnMob(a_HitPos.x, a_HitPos.y, a_HitPos.z, cMonster::mtChicken);
- }
+ }
Destroy();
}