summaryrefslogtreecommitdiffstats
path: root/src/Entities
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-02-28 16:26:23 +0100
committermadmaxoft <github@xoft.cz>2014-02-28 16:26:23 +0100
commit182646188448f9fd8df0b4c0391a2db04575c49d (patch)
treeb823a35f67ab8d5b0f32bb4beea6710667332425 /src/Entities
parentDocumented the changes in cJukeboxEntity. (diff)
downloadcuberite-182646188448f9fd8df0b4c0391a2db04575c49d.tar
cuberite-182646188448f9fd8df0b4c0391a2db04575c49d.tar.gz
cuberite-182646188448f9fd8df0b4c0391a2db04575c49d.tar.bz2
cuberite-182646188448f9fd8df0b4c0391a2db04575c49d.tar.lz
cuberite-182646188448f9fd8df0b4c0391a2db04575c49d.tar.xz
cuberite-182646188448f9fd8df0b4c0391a2db04575c49d.tar.zst
cuberite-182646188448f9fd8df0b4c0391a2db04575c49d.zip
Diffstat (limited to 'src/Entities')
-rw-r--r--src/Entities/Painting.cpp11
-rw-r--r--src/Entities/Painting.h2
2 files changed, 12 insertions, 1 deletions
diff --git a/src/Entities/Painting.cpp b/src/Entities/Painting.cpp
index b98c1e67a..e217556c7 100644
--- a/src/Entities/Painting.cpp
+++ b/src/Entities/Painting.cpp
@@ -4,6 +4,7 @@
#include "Painting.h"
#include "ClientHandle.h"
#include "Player.h"
+#include "../Chunk.h"
@@ -30,6 +31,16 @@ void cPainting::SpawnOn(cClientHandle & a_Client)
+void cPainting::Tick(float a_Dt, cChunk & a_Chunk)
+{
+ UNUSED(a_Dt);
+ UNUSED(a_Chunk);
+}
+
+
+
+
+
void cPainting::GetDrops(cItems & a_Items, cEntity * a_Killer)
{
if ((a_Killer != NULL) && a_Killer->IsPlayer() && !((cPlayer *)a_Killer)->IsGameModeCreative())
diff --git a/src/Entities/Painting.h b/src/Entities/Painting.h
index 95afbed1e..c1024bd1b 100644
--- a/src/Entities/Painting.h
+++ b/src/Entities/Painting.h
@@ -24,7 +24,7 @@ public:
private:
virtual void SpawnOn(cClientHandle & a_Client) override;
- virtual void Tick(float a_Dt, cChunk & a_Chunk) override {};
+ virtual void Tick(float a_Dt, cChunk & a_Chunk) override;
virtual void GetDrops(cItems & a_Items, cEntity * a_Killer) override;
virtual void KilledBy(cEntity * a_Killer) override
{