diff options
author | STRWarrior <niels.breuker@hotmail.nl> | 2013-11-25 21:43:43 +0100 |
---|---|---|
committer | STRWarrior <niels.breuker@hotmail.nl> | 2013-11-25 21:43:43 +0100 |
commit | 18b5ccbc0836dbfb4adcff76dbfbde340bcabbc1 (patch) | |
tree | eb095118736e4c61c93e309dbc560cae56aad134 /source/Entities | |
parent | Added cWorld::SpawnExperienceOrb function. (diff) | |
download | cuberite-18b5ccbc0836dbfb4adcff76dbfbde340bcabbc1.tar cuberite-18b5ccbc0836dbfb4adcff76dbfbde340bcabbc1.tar.gz cuberite-18b5ccbc0836dbfb4adcff76dbfbde340bcabbc1.tar.bz2 cuberite-18b5ccbc0836dbfb4adcff76dbfbde340bcabbc1.tar.lz cuberite-18b5ccbc0836dbfb4adcff76dbfbde340bcabbc1.tar.xz cuberite-18b5ccbc0836dbfb4adcff76dbfbde340bcabbc1.tar.zst cuberite-18b5ccbc0836dbfb4adcff76dbfbde340bcabbc1.zip |
Diffstat (limited to 'source/Entities')
-rw-r--r-- | source/Entities/ExpOrb.cpp | 2 | ||||
-rw-r--r-- | source/Entities/ExpOrb.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source/Entities/ExpOrb.cpp b/source/Entities/ExpOrb.cpp index 200f6e181..1e5ee00ce 100644 --- a/source/Entities/ExpOrb.cpp +++ b/source/Entities/ExpOrb.cpp @@ -40,7 +40,7 @@ void cExpOrb::SpawnOn(cClientHandle & a_Client) void cExpOrb::Tick(float a_Dt, cChunk & a_Chunk) { - cPlayer * a_ClosestPlayer(m_World->FindClosestPlayer(Vector3f(GetPosition()), 3)); + cPlayer * a_ClosestPlayer(m_World->FindClosestPlayer(Vector3f(GetPosition()), 4)); if (a_ClosestPlayer) { Vector3f a_PlayerPos(a_ClosestPlayer->GetPosition()); diff --git a/source/Entities/ExpOrb.h b/source/Entities/ExpOrb.h index 0f1b6ede7..a062eedd3 100644 --- a/source/Entities/ExpOrb.h +++ b/source/Entities/ExpOrb.h @@ -22,7 +22,7 @@ public: virtual void SpawnOn(cClientHandle & a_Client) override; // cExpOrb functions - short int GetReward(void) const { return m_Reward; } + int GetReward(void) const { return m_Reward; } protected: int m_Reward; |