aboutsummaryrefslogtreecommitdiff
path: root/engines/tsage/ringworld2/ringworld2_logic.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2013-11-28 10:54:23 -0500
committerPaul Gilbert2013-11-28 10:54:23 -0500
commit1ba391817995cfd6f18c0cbe85ee23161facdd70 (patch)
tree17dfd661cd773eedebdcb375c82a51d53e77ec67 /engines/tsage/ringworld2/ringworld2_logic.cpp
parent71fa9fe2184d9e1677661b1481f1fbb561d4e0c0 (diff)
downloadscummvm-rg350-1ba391817995cfd6f18c0cbe85ee23161facdd70.tar.gz
scummvm-rg350-1ba391817995cfd6f18c0cbe85ee23161facdd70.tar.bz2
scummvm-rg350-1ba391817995cfd6f18c0cbe85ee23161facdd70.zip
TSAGE: Fix for R2R maze minimap not handling right-hand column scrolling on-screen
Diffstat (limited to 'engines/tsage/ringworld2/ringworld2_logic.cpp')
-rw-r--r--engines/tsage/ringworld2/ringworld2_logic.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/tsage/ringworld2/ringworld2_logic.cpp b/engines/tsage/ringworld2/ringworld2_logic.cpp
index 3f1cecc301..6444b26d56 100644
--- a/engines/tsage/ringworld2/ringworld2_logic.cpp
+++ b/engines/tsage/ringworld2/ringworld2_logic.cpp
@@ -1602,8 +1602,9 @@ void MazeUI::draw() {
int cellY = _mapOffset.y / _cellSize.y + yCtr;
// Loop to iterate through the horizontal visible cells to build up
- // an entire cell high horizontal slice of the map
- for (int xCtr = 0; xCtr < _cellsVisible.x; ++xCtr) {
+ // an entire cell high horizontal slice of the map, plus one extra cell
+ // to allow for partial cell scrolling on-screen on the left/right sides
+ for (int xCtr = 0; xCtr <= _cellsVisible.x; ++xCtr) {
int cellX = _mapOffset.x / _cellSize.x + xCtr;
// Get the type of content to display in the cell