summaryrefslogtreecommitdiffstats
path: root/source/Pickup.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-06-25 08:36:59 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-06-25 08:36:59 +0200
commit4fe7801cfccbfa6f5a42ac2eb919287ef98ea611 (patch)
tree4afeac98622e2a49894164651af7b8d70d91d254 /source/Pickup.cpp
parentActivatorRail is craftable (Patch by tonibm19) (diff)
downloadcuberite-4fe7801cfccbfa6f5a42ac2eb919287ef98ea611.tar
cuberite-4fe7801cfccbfa6f5a42ac2eb919287ef98ea611.tar.gz
cuberite-4fe7801cfccbfa6f5a42ac2eb919287ef98ea611.tar.bz2
cuberite-4fe7801cfccbfa6f5a42ac2eb919287ef98ea611.tar.lz
cuberite-4fe7801cfccbfa6f5a42ac2eb919287ef98ea611.tar.xz
cuberite-4fe7801cfccbfa6f5a42ac2eb919287ef98ea611.tar.zst
cuberite-4fe7801cfccbfa6f5a42ac2eb919287ef98ea611.zip
Diffstat (limited to '')
-rw-r--r--source/Pickup.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/Pickup.cpp b/source/Pickup.cpp
index 19959efa3..6d0f0aa0e 100644
--- a/source/Pickup.cpp
+++ b/source/Pickup.cpp
@@ -93,7 +93,7 @@ void cPickup::Tick(float a_Dt, cChunk & a_Chunk)
m_Timer += a_Dt; // In case we have to destroy the pickup in the same tick.
if (m_Timer > 500.f)
{
- Destroy();
+ Destroy(true);
return;
}
}
@@ -104,20 +104,20 @@ void cPickup::Tick(float a_Dt, cChunk & a_Chunk)
{
if (m_Timer > 500.f) // 0.5 second
{
- Destroy();
+ Destroy(true);
return;
}
}
if (m_Timer > 1000 * 60 * 5) // 5 minutes
{
- Destroy();
+ Destroy(true);
return;
}
if (GetPosY() < -8) // Out of this world and no more visible!
{
- Destroy();
+ Destroy(true);
return;
}
}