made units move slightly slower

(corrects previous patch which could make them move rather fast)
This commit is contained in:
Dave White 2005-02-03 23:09:31 +00:00
parent e6f59fb3ae
commit 405fc7cc82

View file

@ -65,11 +65,11 @@ void move_unit_between(display& disp, const gamemap& map, const gamemap::locatio
LOG_DP << "submerge: " << src_submerge << " -> " << dst_submerge << "\n";
const gamemap::TERRAIN terrain = map.get_terrain(b);
const int nsteps = disp.turbo() ? 3 : 10*u.movement_cost(map,terrain);
const int nsteps = disp.turbo() ? 3 : 7*u.movement_cost(map,terrain);
const double xstep = double(xdst - xsrc) / nsteps;
const double ystep = double(ydst - ysrc) / nsteps;
const int time_between_frames = disp.turbo() ? 2 : 10;
const int time_between_frames = disp.turbo() ? 10 : 20;
int ticks = SDL_GetTicks();
int skips = 0;