3dveins - tradeoffs for v50

allow dropping orphan veins; this is necessitated by what appears to be a bug in the gem spire generation code, which appears to occasionally spew gems in places that are quite distant from the gem spires themselves
develop
Kelly Kinkade 2023-04-08 12:11:15 -05:00
parent 0aa2146e11
commit 36c6c5ee93
1 changed files with 2 additions and 1 deletions

@ -914,6 +914,7 @@ bool VeinGenerator::scan_block_tiles(Block *b, df::coord2d column, int z)
for (int y = 0; y < 16; y++) for (int y = 0; y < 16; y++)
{ {
df::coord2d tile(x,y); df::coord2d tile(x,y);
GeoLayer *layer = mapLayer(b, tile); GeoLayer *layer = mapLayer(b, tile);
if (!layer) if (!layer)
continue; continue;
@ -1363,7 +1364,7 @@ bool VeinGenerator::place_orphan(t_veinkey key, int size, GeoLayer *from)
ENUM_KEY_STR(inclusion_type, key.second).c_str() ENUM_KEY_STR(inclusion_type, key.second).c_str()
); );
return false; return true;
} }
for (auto it = best.begin(); size > 0 && it != best.end(); ++it) for (auto it = best.begin(); size > 0 && it != best.end(); ++it)