second attempt at fixing the scrolling bug, please test again
This commit is contained in:
parent
8315dcc51c
commit
d9813f7374
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue