made moving of units faster in accelerated mode

This commit is contained in:
Dave White 2003-09-30 09:18:24 +00:00
parent 664c3a790c
commit 9b9870b00d

View file

@ -1912,7 +1912,7 @@ void display::move_unit_between(const gamemap::location& a,
double xdst = get_location_x(b);
double ydst = get_location_y(b);
const double nsteps = 10.0;
const double nsteps = turbo() ? 2.0 : 10.0;
const double xstep = (xdst - xsrc)/nsteps;
const double ystep = (ydst - ysrc)/nsteps;
@ -1989,7 +1989,7 @@ void display::move_unit_between(const gamemap::location& a,
const int new_ticks = SDL_GetTicks();
const int wait_time = time_between_frames - (new_ticks - ticks);
if(wait_time > 0 && !turbo()) {
if(wait_time > 0) {
SDL_Delay(wait_time);
}