diff options
author | Paul Gilbert | 2015-01-19 23:57:13 -0500 |
---|---|---|
committer | Paul Gilbert | 2015-01-19 23:57:13 -0500 |
commit | aab62d606ec726b6363f067cee17c284d8b396d1 (patch) | |
tree | 592c68f30613d65944e8ec8c228166dfa8d8f689 /engines/xeen | |
parent | d32c90eee9c683b4d62656d3e13d888c16aad9c3 (diff) | |
download | scummvm-rg350-aab62d606ec726b6363f067cee17c284d8b396d1.tar.gz scummvm-rg350-aab62d606ec726b6363f067cee17c284d8b396d1.tar.bz2 scummvm-rg350-aab62d606ec726b6363f067cee17c284d8b396d1.zip |
XEEN: More minimap fixes
Diffstat (limited to 'engines/xeen')
-rw-r--r-- | engines/xeen/interface.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/engines/xeen/interface.cpp b/engines/xeen/interface.cpp index 67f6363ce9..16ded9ec19 100644 --- a/engines/xeen/interface.cpp +++ b/engines/xeen/interface.cpp @@ -2375,7 +2375,7 @@ void Interface::drawMiniMap() { Common::Point(267, 36)); } else { frame2 = (frame2 + 2) % 8; - party._wizardEyeActive = true; //**DEBUG** + // First draw the default surface bases for each cell to show for (int rowNum = 0, yp = 12, yDiff = 3; rowNum < MINIMAP_SIZE; ++rowNum, yp += 8, --yDiff) { for (int colNum = 0, xp = 237, xDiff = -3; colNum < MINIMAP_SIZE; ++colNum, xp += 10, ++xDiff) { @@ -2442,7 +2442,7 @@ void Interface::drawMiniMap() { // for (int idx = 0, xp = 237, yp = 60, xDiff = -3; idx < MINIMAP_SIZE; - ++idx, --xDiff, xp += 10, yp -= 8) { + ++idx, ++xDiff, xp += 10, yp -= 8) { v = map.mazeLookup( Common::Point(party._mazePosition.x - 4, party._mazePosition.y - 3 + idx), 12, 0xffff); @@ -2549,7 +2549,7 @@ void Interface::drawMiniMap() { map._tileSprites.draw(window1, frame, Common::Point(xp, 4)); } - // + // Draw the front/back walls of cells in the minimap for (int rowNum = 0, yp = 12, yDiff = 3; rowNum < MINIMAP_SIZE; ++rowNum, --yDiff, yp += 8) { for (int colNum = 0, xp = 237, xDiff = -3; colNum < MINIMAP_SIZE; @@ -2665,15 +2665,14 @@ void Interface::drawMiniMap() { } } - // Final loop + // Draw the top of blocked/wall cells on the map for (int rowNum = 0, yp = 12, yDiff = 3; rowNum < MINIMAP_SIZE; ++rowNum, yp += 8, --yDiff) { for (int colNum = 0, xp = 237, xDiff = -3; colNum < MINIMAP_SIZE; ++colNum, xp += 10, ++xDiff) { v = map.mazeLookup( Common::Point(party._mazePosition.x + xDiff, party._mazePosition.y + yDiff), 0, 0xffff); - if (v != INVALID_CELL && !map._currentSurfaceId && - (map._currentSteppedOn || party._wizardEyeActive)) { + if (v == INVALID_CELL || (!map._currentSteppedOn && !party._wizardEyeActive)) { map._tileSprites.draw(window1, 1, Common::Point(xp, yp)); } } |