diff options
| author | Alexander Gavrilov | 2012-04-19 19:17:07 +0400 |
|---|---|---|
| committer | Alexander Gavrilov | 2012-04-19 19:17:07 +0400 |
| commit | 4b87f1bcaca65b7fa7542dfa6e638413c5b6d48f (patch) | |
| tree | cd6fb8ddf2c630c9b413235d1f211e111b9b2ef2 /plugins/mapexport | |
| parent | f655a0986dde21796fe00613912845a04ec61082 (diff) | |
| download | dfhack-4b87f1bcaca65b7fa7542dfa6e638413c5b6d48f.tar.gz dfhack-4b87f1bcaca65b7fa7542dfa6e638413c5b6d48f.tar.bz2 dfhack-4b87f1bcaca65b7fa7542dfa6e638413c5b6d48f.tar.xz | |
Refactor MapCache: make it parse everything that is known re tiles & mats.
Diffstat (limited to 'plugins/mapexport')
| -rw-r--r-- | plugins/mapexport/mapexport.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mapexport/mapexport.cpp b/plugins/mapexport/mapexport.cpp index e0a7e5e6..592c526d 100644 --- a/plugins/mapexport/mapexport.cpp +++ b/plugins/mapexport/mapexport.cpp @@ -193,7 +193,7 @@ command_result mapexport (color_ostream &out, std::vector <std::string> & parame prototile->set_flow_size(des.bits.flow_size); } - df::tiletype type = b->TileTypeAt(coord); + df::tiletype type = b->tiletypeAt(coord); prototile->set_type((dfproto::Tile::TileType)tileShape(type)); prototile->set_tile_material((dfproto::Tile::TileMaterialType)tileMaterial(type)); @@ -204,7 +204,7 @@ command_result mapexport (color_ostream &out, std::vector <std::string> & parame case tiletype_material::SOIL: case tiletype_material::STONE: prototile->set_material_type(0); - prototile->set_material_index(b->baseMaterialAt(coord)); + prototile->set_material_index(b->layerMaterialAt(coord)); break; case tiletype_material::MINERAL: prototile->set_material_type(0); |
