diff options
| author | Quietust | 2012-02-13 20:32:41 -0600 |
|---|---|---|
| committer | Quietust | 2012-02-13 20:32:41 -0600 |
| commit | 2ddd3df3a8e206c757720e256e3ff0e74e4a80c8 (patch) | |
| tree | 4183d092076970716526d7e39b0eb140c378bc92 /library/TileTypes.cpp | |
| parent | b152a40e836c652e6a18c93e17a5789d98d1409a (diff) | |
| download | dfhack-2ddd3df3a8e206c757720e256e3ff0e74e4a80c8.tar.gz dfhack-2ddd3df3a8e206c757720e256e3ff0e74e4a80c8.tar.bz2 dfhack-2ddd3df3a8e206c757720e256e3ff0e74e4a80c8.tar.xz | |
When searching for tile types, only require candidate tile to match variant or special if it actually has them
Diffstat (limited to 'library/TileTypes.cpp')
| -rw-r--r-- | library/TileTypes.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/TileTypes.cpp b/library/TileTypes.cpp index 55197de9..660114d3 100644 --- a/library/TileTypes.cpp +++ b/library/TileTypes.cpp @@ -78,8 +78,8 @@ namespace DFHack break; if (tileShape(tt) == tshape) { - // Special flag match is absolutely mandatory! - if (tileSpecial(tt) != cur_special) + // Special flag match is mandatory, but only if it might possibly make a difference + if (tileSpecial(tt) != tiletype_special::NONE && cur_special != tiletype_special::NONE && tileSpecial(tt) != cur_special) continue; // Special case for constructions. |
