Skip to content

Commit

Permalink
Bugfix: SaveScreen::pan_y was inverted
Browse files Browse the repository at this point in the history
  • Loading branch information
mateofio committed Dec 21, 2018
1 parent 53654dc commit 0f700e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game_map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ void Game_Map::ScrollDown(int distance) {
// Unused, except compatibility with RPG_RT
auto& pan_y = Main_Data::game_data.screen.pan_y;
const auto pan_limit_y = 10 * SCREEN_TILE_WIDTH;
pan_y = (pan_y + distance + pan_limit_y) % pan_limit_y;
pan_y = (pan_y - distance + pan_limit_y) % pan_limit_y;

Game_Map::Parallax::ScrollDown(distance);
}
Expand Down

0 comments on commit 0f700e1

Please sign in to comment.