XEEN: Fix loading of desert map

This commit is contained in:
Paul Gilbert 2018-01-25 19:49:53 -05:00
parent 3cc12c3da2
commit 22d1a6496c
3 changed files with 5 additions and 5 deletions

View File

@ -1205,7 +1205,7 @@ void Map::load(int mapId) {
if (_mazeData[0]._wallTypes[i] != 0) {
_wallSprites._surfaces[i].load(Common::String::format("%s.wal",
Res.SURFACE_TYPE_NAMES[_mazeData[0]._wallTypes[i]]));
Res.OUTDOORS_WALL_TYPES[_mazeData[0]._wallTypes[i]]));
}
_surfaceSprites[i].clear();

View File

@ -112,9 +112,9 @@ const char *const Resources::TERRAIN_TYPES[6] = {
"town", "cave", "towr", "cstl", "dung", "scfi"
};
const char *const Resources::SURFACE_TYPE_NAMES[15] = {
nullptr, "mount", "ltree", "dtree", "grass", "snotree", "snomnt",
"dedltree", "mount", "lavamnt", "palm", "dmount", "dedltree",
const char *const Resources::OUTDOORS_WALL_TYPES[16] = {
nullptr, "mount", "ltree", "dtree", "grass", "snotree", "dsnotree",
"snomnt", "dedltree", "mount", "lavamnt", "palm", "dmount", "dedltree",
"dedltree", "dedltree"
};

View File

@ -50,7 +50,7 @@ public:
static const char *const IN_NO_CONDITION;
static const char *const NOTHING_HERE;
static const char *const TERRAIN_TYPES[6];
static const char *const SURFACE_TYPE_NAMES[15];
static const char *const OUTDOORS_WALL_TYPES[16];
static const char *const SURFACE_NAMES[16];
static const char *const WHO_ACTIONS[32];
static const char *const WHO_WILL_ACTIONS[4];