Fix tile materials in mapexport.

develop
Mike Stewart 2012-02-20 19:32:58 -08:00
parent 931121e5fd
commit 2524f81ae0
2 changed files with 4 additions and 3 deletions

@ -208,8 +208,7 @@ command_result mapexport (Core * c, std::vector <std::string> & parameters)
df::tiletype type = b->TileTypeAt(coord); df::tiletype type = b->TileTypeAt(coord);
prototile->set_type((dfproto::Tile::TileType)tileShape(type)); prototile->set_type((dfproto::Tile::TileType)tileShape(type));
prototile->set_tile_material((dfproto::Tile::TileMaterialType)tileMaterial(type));
prototile->set_material_type((dfproto::Tile::TileMaterialType)tileMaterial(type));
df::coord map_pos = df::coord(b_x*16+x,b_y*16+y,z); df::coord map_pos = df::coord(b_x*16+x,b_y*16+y,z);
@ -249,6 +248,8 @@ command_result mapexport (Core * c, std::vector <std::string> & parameters)
prototile->set_material_type(constructionMaterials[map_pos].second); prototile->set_material_type(constructionMaterials[map_pos].second);
} }
break; break;
default:
break;
} }
} }
} }

@ -36,7 +36,7 @@ message Tile
FEATURE = 3; FEATURE = 3;
LAVA_STONE = 4; LAVA_STONE = 4;
MINERAL = 5; MINERAL = 5;
FROZE_LIQUID = 6; FROZEN_LIQUID = 6;
CONSTRUCTION = 7; CONSTRUCTION = 7;
GRASS_LIGHT = 8; GRASS_LIGHT = 8;
GRASS_DARK = 9; GRASS_DARK = 9;