diff options
author | Paul Gilbert | 2015-01-19 19:28:38 -0500 |
---|---|---|
committer | Paul Gilbert | 2015-01-19 19:28:38 -0500 |
commit | dc8592a9128ed389ba9d466bac96bc15609d3eef (patch) | |
tree | 7ab4ec145cb447a44a456e877d6efd326a0916d0 /engines/xeen | |
parent | ebc155ac0abc5eda87541cf56f46b7d18d9903b3 (diff) | |
download | scummvm-rg350-dc8592a9128ed389ba9d466bac96bc15609d3eef.tar.gz scummvm-rg350-dc8592a9128ed389ba9d466bac96bc15609d3eef.tar.bz2 scummvm-rg350-dc8592a9128ed389ba9d466bac96bc15609d3eef.zip |
XEEN: Fix loading of wall types
Diffstat (limited to 'engines/xeen')
-rw-r--r-- | engines/xeen/map.cpp | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/engines/xeen/map.cpp b/engines/xeen/map.cpp index 2bc610721a..bf03905818 100644 --- a/engines/xeen/map.cpp +++ b/engines/xeen/map.cpp @@ -1118,12 +1118,14 @@ void Map::load(int mapId) { for (int i = 0; i < TOTAL_SURFACES; ++i) _wallSprites._surfaces[i].clear(); - Common::String fwlName = Common::String::format("%s.til", - TERRAIN_TYPES[_mazeData[0]._wallKind]); - _wallSprites._fwl1.load(fwlName); - _wallSprites._fwl2.load(fwlName); - _wallSprites._fwl3.load(fwlName); - _wallSprites._fwl4.load(fwlName); + _wallSprites._fwl1.load(Common::String::format("f%s1.fwl", + TERRAIN_TYPES[_mazeData[0]._wallKind])); + _wallSprites._fwl2.load(Common::String::format("f%s2.fwl", + TERRAIN_TYPES[_mazeData[0]._wallKind])); + _wallSprites._fwl3.load(Common::String::format("f%s3.fwl", + TERRAIN_TYPES[_mazeData[0]._wallKind])); + _wallSprites._fwl4.load(Common::String::format("f%s4.fwl", + TERRAIN_TYPES[_mazeData[0]._wallKind])); _wallSprites._swl.load(Common::String::format("s%s.swl", TERRAIN_TYPES[_mazeData[0]._wallKind])); @@ -1182,7 +1184,7 @@ void Map::load(int mapId) { indoorList._ground._sprites = &_groundSprites; - // Down show horizon for certain maps + // Don't show horizon for certain maps if (_vm->_files->_isDarkCc) { if ((mapId >= 89 && mapId <= 112) || mapId == 128 || mapId == 129) indoorList._horizon._sprites = nullptr; |