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:
@@ -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)
|
||||
|
||||
@@ -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; }
|
||||
|
||||
} ;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user