revert restriction on ramp tops

now that tree branches are not included, this is not an issue
also, it was preventing flood fill from progressing up ramps
develop
Myk Taylor 2023-11-14 12:56:19 -08:00
parent f2e5bed633
commit 14e05f4970
No known key found for this signature in database
1 changed files with 8 additions and 10 deletions

@ -602,7 +602,6 @@ static void flood_fill(lua_State *L, bool enable) {
if (start_walk && start_walk != walk && tt && !is_tree_trunk(tt)) if (start_walk && start_walk != walk && tt && !is_tree_trunk(tt))
continue; continue;
if (tt && tileShape(*tt) != df::tiletype_shape::RAMP_TOP) {
flood.emplace(pos.x-1, pos.y-1, pos.z); flood.emplace(pos.x-1, pos.y-1, pos.z);
flood.emplace(pos.x, pos.y-1, pos.z); flood.emplace(pos.x, pos.y-1, pos.z);
flood.emplace(pos.x+1, pos.y-1, pos.z); flood.emplace(pos.x+1, pos.y-1, pos.z);
@ -611,7 +610,6 @@ static void flood_fill(lua_State *L, bool enable) {
flood.emplace(pos.x-1, pos.y+1, pos.z); flood.emplace(pos.x-1, pos.y+1, pos.z);
flood.emplace(pos.x, pos.y+1, pos.z); flood.emplace(pos.x, pos.y+1, pos.z);
flood.emplace(pos.x+1, pos.y+1, pos.z); flood.emplace(pos.x+1, pos.y+1, pos.z);
}
if (!zlevel) { if (!zlevel) {
df::coord pos_above = pos + df::coord(0, 0, 1); df::coord pos_above = pos + df::coord(0, 0, 1);