- better randomizing for model animation selection

This commit is contained in:
Mark Vejvoda 2011-07-01 01:25:10 +00:00
parent 1b72bcafe8
commit 68e3ad8036
1 changed files with 1 additions and 1 deletions

View File

@ -315,7 +315,7 @@ Model *SkillType::getAnimation(float animProgress, const Unit *unit,
if(foundSpecificAnimation == false) {
//int modelIndex = random.randRange(0,animations.size()-1);
srand(time(NULL));
srand(time(NULL) + unit->getId());
modelIndex = rand() % animations.size();
//const AnimationAttributes &attributes = animationAttributes[modelIndex];