@@ -305,8 +305,6 @@ static bool is_wagon_traversible(FloodCtx & ctx, const df::coord & pos, const df
305305 if (ctx.wgroup == Maps::getWalkableGroup (pos))
306306 return true ;
307307
308- // RAMP_TOP is assigned a walkability group if that commit is accepted
309- // so this test, I think, would be useless.
310308 if (shape == df::tiletype_shape::RAMP_TOP ) {
311309 df::coord pos_below = pos + df::coord (0 , 0 , -1 );
312310 if (Maps::getWalkableGroup (pos_below)) {
@@ -351,22 +349,6 @@ static void check_wagon_tile(FloodCtx & ctx, const df::coord & pos) {
351349 ctx.wagon_path .emplace (pos);
352350 ctx.search_edge .emplace (pos);
353351 }
354-
355- #if 0
356- // Use this if we don't mind red Xs on down ramps
357- if ((is_wagon_traversible(ctx, pos+df::coord(-1, -1, 0), pos) &&
358- is_wagon_traversible(ctx, pos+df::coord( 0, -1, 0), pos) &&
359- is_wagon_traversible(ctx, pos+df::coord( 1, -1, 0), pos) &&
360- is_wagon_traversible(ctx, pos+df::coord(-1, 0, 0), pos) &&
361- is_wagon_traversible(ctx, pos+df::coord( 1, 0, 0), pos) &&
362- is_wagon_traversible(ctx, pos+df::coord(-1, 1, 0), pos) &&
363- is_wagon_traversible(ctx, pos+df::coord( 0, 1, 0), pos) &&
364- is_wagon_traversible(ctx, pos+df::coord( 1, 1, 0), pos))) {
365- ctx.wagon_path.emplace(pos);
366- ctx.search_edge.emplace(pos);
367- }
368- #endif
369-
370352}
371353
372354// returns true if a continuous 3-wide path can be found to an entry tile
0 commit comments