summaryrefslogtreecommitdiffstats
path: root/source/Pickup.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-02-21 22:55:36 +0100
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-02-21 22:55:36 +0100
commit4ce0c5a983bbb82a0a8091ad735c6ec494c912e2 (patch)
treee87c7544799ce5fd0e54e50caf2b4d909f6e4ca9 /source/Pickup.cpp
parentAdded HOOK_EXECUTE_COMMAND for intercepting executed commands and console commands. (diff)
downloadcuberite-4ce0c5a983bbb82a0a8091ad735c6ec494c912e2.tar
cuberite-4ce0c5a983bbb82a0a8091ad735c6ec494c912e2.tar.gz
cuberite-4ce0c5a983bbb82a0a8091ad735c6ec494c912e2.tar.bz2
cuberite-4ce0c5a983bbb82a0a8091ad735c6ec494c912e2.tar.lz
cuberite-4ce0c5a983bbb82a0a8091ad735c6ec494c912e2.tar.xz
cuberite-4ce0c5a983bbb82a0a8091ad735c6ec494c912e2.tar.zst
cuberite-4ce0c5a983bbb82a0a8091ad735c6ec494c912e2.zip
Diffstat (limited to '')
-rw-r--r--source/Pickup.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/Pickup.cpp b/source/Pickup.cpp
index ae4db86bb..19a825cc1 100644
--- a/source/Pickup.cpp
+++ b/source/Pickup.cpp
@@ -26,13 +26,13 @@
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, ((double)(a_MicroPosY)) / 32, ((double)(a_MicroPosZ)) / 32)
- , m_Speed( a_SpeedX, a_SpeedY, a_SpeedZ )
, m_bOnGround( false )
, m_bReplicated( false )
, m_Timer( 0.f )
, m_Item(a_Item)
, m_bCollected( false )
{
+ m_Speed.Set(a_SpeedX, a_SpeedY, a_SpeedZ);
}