diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2013-09-18 23:20:08 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2013-09-18 23:20:08 +0200 |
commit | 198ac1892ca0751551206ca25164bc691386914b (patch) | |
tree | d69d08c269a7eaf78dd8917e309f0d75d4accf3d /source/Entities | |
parent | Added moar mobs! (diff) | |
download | cuberite-198ac1892ca0751551206ca25164bc691386914b.tar cuberite-198ac1892ca0751551206ca25164bc691386914b.tar.gz cuberite-198ac1892ca0751551206ca25164bc691386914b.tar.bz2 cuberite-198ac1892ca0751551206ca25164bc691386914b.tar.lz cuberite-198ac1892ca0751551206ca25164bc691386914b.tar.xz cuberite-198ac1892ca0751551206ca25164bc691386914b.tar.zst cuberite-198ac1892ca0751551206ca25164bc691386914b.zip |
Diffstat (limited to '')
-rw-r--r-- | source/Entities/Pickup.cpp | 4 | ||||
-rw-r--r-- | source/Entities/Pickup.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/source/Entities/Pickup.cpp b/source/Entities/Pickup.cpp index db7be8b04..79a3a6274 100644 --- a/source/Entities/Pickup.cpp +++ b/source/Entities/Pickup.cpp @@ -24,8 +24,8 @@ -cPickup::cPickup(int a_MicroPosX, int a_MicroPosY, int a_MicroPosZ, const cItem & a_Item, float a_SpeedX /* = 0.f */, float a_SpeedY /* = 0.f */, float a_SpeedZ /* = 0.f */) - : cEntity(etPickup, (((double)(a_MicroPosX)) / 32) + 0.1 /*Accomodate player vomiting*/, ((double)(a_MicroPosY)) / 32, ((double)(a_MicroPosZ)) / 32, 0.2, 0.2) +cPickup::cPickup(double a_MicroPosX, double a_MicroPosY, double a_MicroPosZ, const cItem & a_Item, float a_SpeedX /* = 0.f */, float a_SpeedY /* = 0.f */, float a_SpeedZ /* = 0.f */) + : cEntity(etPickup, (double)(a_MicroPosX), (double)(a_MicroPosY), (double)(a_MicroPosZ), 0.2, 0.2) , m_Timer( 0.f ) , m_Item(a_Item) , m_bCollected( false ) diff --git a/source/Entities/Pickup.h b/source/Entities/Pickup.h index af6eaf3bb..e35914684 100644 --- a/source/Entities/Pickup.h +++ b/source/Entities/Pickup.h @@ -24,7 +24,7 @@ class cPickup : public: CLASS_PROTODEF(cPickup); - cPickup(int a_MicroPosX, int a_MicroPosY, int a_MicroPosZ, const cItem & a_Item, float a_SpeedX = 0.f, float a_SpeedY = 0.f, float a_SpeedZ = 0.f); // tolua_export + cPickup(double a_MicroPosX, double a_MicroPosY, double a_MicroPosZ, const cItem & a_Item, float a_SpeedX = 0.f, float a_SpeedY = 0.f, float a_SpeedZ = 0.f); // tolua_export cItem & GetItem(void) {return m_Item; } // tolua_export const cItem & GetItem(void) const {return m_Item; } |