From 68e3ad803629ff4afd4311a7a835fd809d9671a7 Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Fri, 1 Jul 2011 01:25:10 +0000 Subject: [PATCH] - better randomizing for model animation selection --- source/glest_game/types/skill_type.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/glest_game/types/skill_type.cpp b/source/glest_game/types/skill_type.cpp index 520f386b..cc2a491f 100644 --- a/source/glest_game/types/skill_type.cpp +++ b/source/glest_game/types/skill_type.cpp @@ -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];