Skip to content

Commit ef0b0e4

Browse files
committed
#5031: resolve some other minor issues
1 parent e926210 commit ef0b0e4

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

plugins/pathable.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ static bool is_wagon_tile_traversible(df::tiletype tt) {
242242
auto special = tileSpecial(tt);
243243
auto material = tileMaterial(tt);
244244

245-
// Allow murky pool ramps
245+
// Allow ramps (murky pool and river tiles are blocked except for ramps)
246246
if (shape == df::tiletype_shape::RAMP_TOP)
247247
return true;
248248
// NOTE: smoothing a boulder turns it into a smoothed floor
@@ -300,9 +300,6 @@ static bool is_wagon_traversible(FloodCtx & ctx, const df::coord & pos, const df
300300
case tile_building_occ::Floored:
301301
// depot, lowered bridges or retractable bridges, forbidden hatches
302302
break;
303-
default:
304-
//NOTREACHED
305-
break;
306303
}
307304

308305
if (ctx.wgroup == Maps::getWalkableGroup(pos))

0 commit comments

Comments
 (0)