- better randomizing for model animation selection
This commit is contained in:
parent
1b72bcafe8
commit
68e3ad8036
|
@ -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];
|
||||
|
|
Loading…
Reference in New Issue