fix bug: couldn't place boat at same loc in 2 sections

This commit is contained in:
2025-06-11 16:05:54 -05:00
parent 6948453971
commit 3810fd0250

View File

@@ -1106,7 +1106,7 @@ static bool handle_terrain_action(location the_point, bool ctrl_hit) {
auto& all = overall_mode == MODE_PLACE_BOAT ? scenario.boats : scenario.horses;
auto iter = std::find_if(all.begin(), all.end(), [](const cVehicle& what) {
if(editing_town && cur_town != what.which_town) return false;
else if(!editing_town && what.which_town != 200) return false;
else if(!editing_town && what.sector != cur_out) return false;
return what.loc == spot_hit;
});
if(iter == all.end()) {