Fix reveal and tiletypes - RIVER and POOL are no longer tile shapes

develop
Quietust 2012-02-18 11:36:06 -06:00
parent d394dc406b
commit e4a0b2aaf9
2 changed files with 1 additions and 3 deletions

@ -409,9 +409,7 @@ command_result revflood(DFHack::Core * c, std::vector<std::string> & params)
case tiletype_shape::BOULDER: case tiletype_shape::BOULDER:
case tiletype_shape::PEBBLES: case tiletype_shape::PEBBLES:
case tiletype_shape::BROOK_BED: case tiletype_shape::BROOK_BED:
case tiletype_shape::RIVER_BED:
case tiletype_shape::ENDLESS_PIT: case tiletype_shape::ENDLESS_PIT:
case tiletype_shape::POOL:
if(from_below) if(from_below)
unhide = 0; unhide = 0;
above = sides = true; above = sides = true;

@ -850,7 +850,7 @@ command_result df_tiletypes (Core * c, vector <string> & parameters)
*/ */
// Remove direction from directionless tiles // Remove direction from directionless tiles
DFHack::TileDirection direction = tileDirection(source); DFHack::TileDirection direction = tileDirection(source);
if (!(shape == tiletype_shape::RIVER_BED || shape == tiletype_shape::BROOK_BED || shape == tiletype_shape::WALL && (material == tiletype_material::CONSTRUCTION || special == tiletype_special::SMOOTH))) { if (!(material == tiletype_material::RIVER || shape == tiletype_shape::BROOK_BED || shape == tiletype_shape::WALL && (material == tiletype_material::CONSTRUCTION || special == tiletype_special::SMOOTH))) {
direction.whole = 0; direction.whole = 0;
} }