diff --git a/library/DFTileTypes.cpp b/library/DFTileTypes.cpp index d0ad8e5f7..5ca3c4aa7 100644 --- a/library/DFTileTypes.cpp +++ b/library/DFTileTypes.cpp @@ -3,8 +3,6 @@ #include "dfhack/DFTileTypes.h" #include "dfhack/DFExport.h" -#include - namespace DFHack { const TileRow tileTypeTable[TILE_TYPE_ARRAY_LENGTH] = @@ -692,8 +690,7 @@ namespace DFHack case OBSIDIAN: match= 80; break; case STONE: match= 79; break; } - //Prevent the loop. - matchv=value=(8|4|1); + if( match ) return match; } @@ -739,7 +736,10 @@ namespace DFHack //Very picky, only handle known safe tile types. //Some floors have 4 variants, some have 3, so the order of these matters. switch( match ){ - case 261: match=352+(3&entropy); break; //furrowed soil got chosen by accident. + case 261: + //Furrowed soil got chosen by accident. Fix that. + match=352+(3&entropy); + break; case 336: //STONE case 340: //OBSIDIAN case 344: //featstone diff --git a/library/modules/Maps.cpp b/library/modules/Maps.cpp index 28fec081d..8ab9a6c2e 100644 --- a/library/modules/Maps.cpp +++ b/library/modules/Maps.cpp @@ -1059,9 +1059,6 @@ bool Maps::WriteVein(t_vein *vein) return true; } -#include - - /* __int16 __userpurge GetGeologicalRegion(__int16 block_X, int X, __int16 block_Y, int block_addr, int Y)