Added more debug code to find crash.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6688 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2010-11-22 00:41:01 +00:00
parent 8903fdf791
commit 72192160bb

View File

@ -82,6 +82,7 @@ void MaxSpeed::reset()
void MaxSpeed::increaseMaxSpeed(unsigned int category, float add_speed,
float duration, float fade_out_time)
{
assert(fade_out_time>0.01f);
assert(category>=MS_INCREASE_MIN && category <MS_INCREASE_MAX);
m_speed_increase[category].m_duration = duration;
m_speed_increase[category].m_fade_out_time = fade_out_time;