Properly check each tile for local and global features

develop
Jared Adams 2011-05-04 17:24:20 -06:00
parent 97df735db5
commit cfd5a25400
1 changed files with 2 additions and 2 deletions

@ -278,7 +278,7 @@ int main(int argc, char *argv[])
veinMats[b->veinMaterialAt(coord)]++; veinMats[b->veinMaterialAt(coord)]++;
break; break;
case DFHack::FEATSTONE: case DFHack::FEATSTONE:
if (blockFeatureLocal) if (blockFeatureLocal && des.bits.feature_local)
{ {
if (blockFeatureLocal->type == DFHack::feature_Adamantine_Tube if (blockFeatureLocal->type == DFHack::feature_Adamantine_Tube
&& blockFeatureLocal->main_material == 0) // stone && blockFeatureLocal->main_material == 0) // stone
@ -292,7 +292,7 @@ int main(int argc, char *argv[])
} }
} }
if (showSlade && blockFeatureGlobal if (showSlade && blockFeatureGlobal && des.bits.feature_global
&& blockFeatureGlobal->type == DFHack::feature_Underworld && blockFeatureGlobal->type == DFHack::feature_Underworld
&& blockFeatureGlobal->main_material == 0) // stone && blockFeatureGlobal->main_material == 0) // stone
{ {