reduce frequency of idle animations

This commit is contained in:
Jérémy Rosen 2007-06-29 22:24:00 +00:00
parent 12d0c82fd8
commit d081ba00c5
3 changed files with 3 additions and 1 deletions

View file

@ -7,6 +7,7 @@ Version 1.3.4+svn:
Crossing, Sulla's Ruins
* user interface:
* allow unfocused widgets to steal the focus instead of just borrowing it
* frequency of idle animations halved.
Version 1.3.4:
* campaigns

View file

@ -18,6 +18,7 @@ Version 1.3.4+svn:
* User interface
* Bug in delete_autosave preference fixed (thank you to jimm
for spotting this).
* The frequency of unit idle animations has been halved.
* Unit changes and balancing

View file

@ -1618,7 +1618,7 @@ const unit_animation* unit::start_animation(const game_display &disp, const game
}
anim_->start_animation(anim_->get_begin_time(), false, disp.turbo_speed());
frame_begin_time_ = anim_->get_begin_time() -1;
next_idling_= get_current_animation_tick() +10000 +rand()%10000;
next_idling_= get_current_animation_tick() +20000 +rand()%20000;
if(is_attack_anim) {
return &((attack_animation*)anim_)->get_missile_anim();
} else {