mirror of
https://github.com/glest/glest-source.git
synced 2025-08-29 10:49:48 +02:00
- commented assert and added more debug info when tween is invalid
This commit is contained in:
@@ -506,8 +506,8 @@ void GameParticleSystem::setTween(float relative,float absolute) {
|
||||
}
|
||||
}
|
||||
if(tween < 0.0f || tween > 1.0f) {
|
||||
printf("In [%s::%s Line: %d] ERROR setting tween to [%f]\n",__FILE__,__FUNCTION__,__LINE__,tween);
|
||||
assert(tween >= 0.0f && tween <= 1.0f);
|
||||
printf("In [%s::%s Line: %d] WARNING setting tween to [%f] clamping tween, modelCycle [%f] absolute [%f] relative [%f]\n",__FILE__,__FUNCTION__,__LINE__,tween,modelCycle,absolute,relative);
|
||||
//assert(tween >= 0.0f && tween <= 1.0f);
|
||||
}
|
||||
|
||||
tween= clamp(tween, 0.0f, 1.0f);
|
||||
|
Reference in New Issue
Block a user