summaryrefslogtreecommitdiffstats
path: root/source/Entities
diff options
context:
space:
mode:
authorSTRWarrior <niels.breuker@hotmail.nl>2013-11-25 21:43:43 +0100
committerSTRWarrior <niels.breuker@hotmail.nl>2013-11-25 21:43:43 +0100
commit18b5ccbc0836dbfb4adcff76dbfbde340bcabbc1 (patch)
treeeb095118736e4c61c93e309dbc560cae56aad134 /source/Entities
parentAdded cWorld::SpawnExperienceOrb function. (diff)
downloadcuberite-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 '')
-rw-r--r--source/Entities/ExpOrb.cpp2
-rw-r--r--source/Entities/ExpOrb.h2
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;