Fixed little glitch that could cause explosions to be cut before they had time to fade out

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6888 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria
2010-12-08 02:04:00 +00:00
parent a6f7b7df9d
commit a0a85ed1c2
2 changed files with 3 additions and 2 deletions

View File

@@ -27,7 +27,6 @@
#include "items/projectile_manager.hpp"
#include "utils/vec3.hpp"
const float explosion_time = 1.5f;
const float burst_time = 0.1f;
Explosion::Explosion(const Vec3& coord, const char* explosion_sound)

View File

@@ -28,6 +28,8 @@ using namespace irr;
class Vec3;
class SFXBase;
const float explosion_time = 1.5f;
/**
* \ingroup graphics
*/
@@ -44,7 +46,7 @@ public:
void init (const Vec3& coord);
void update (float delta_t);
int inUse ();
bool hasEnded () { return m_remaining_time<0.0f; }
bool hasEnded () { return m_remaining_time < -explosion_time; }
} ;