second attempt at fixing the scrolling bug, please test again

This commit is contained in:
Jérémy Rosen 2008-01-07 20:16:09 +00:00
parent 8315dcc51c
commit d9813f7374

View file

@ -128,7 +128,7 @@ void move_unit(const std::vector<gamemap::location>& path, unit& u, const std::v
end++;
}
if (begin != path.size()) { //found a visible tile
if(end = path.size()) end--;
if(end == path.size()) end--;
disp->scroll_to_tiles(path[begin],path[end],game_display::ONSCREEN);
}