Skip to content

Commit

Permalink
XEEN: Fix resetting sprites on ground tiles when drawing
Browse files Browse the repository at this point in the history
  • Loading branch information
dreammaster committed Jan 20, 2015
1 parent dc8592a commit a1fb631
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions engines/xeen/interface_map.cpp
Expand Up @@ -1112,8 +1112,8 @@ void InterfaceMap::drawIndoors() {
map.getCell(DRAW_NUMBERS[cellIndex]);

DrawStruct &drawStruct = _indoorList._groundTiles[cellIndex];
if (!map._surfaceSprites[map._currentSurfaceId].empty())
drawStruct._sprites = &map._surfaceSprites[map._currentSurfaceId];
SpriteResource &sprites = map._surfaceSprites[map._currentSurfaceId];
drawStruct._sprites = sprites.empty() ? (SpriteResource *)nullptr : &sprites;

surfaceId = map.mazeData()._surfaceTypes[map._currentSurfaceId];
if (surfaceId == SURFTYPE_WATER || surfaceId == SURFTYPE_LAVA ||
Expand Down

0 comments on commit a1fb631

Please sign in to comment.