Skip to content

Commit

Permalink
FIX: do not expand non-transfer non-start halts further
Browse files Browse the repository at this point in the history
git-svn-id: svn://tron.homeunix.org/simutrans/simutrans/trunk@8289 8aca7d54-2c30-db11-9de9-000461428c89
  • Loading branch information
Dwachs committed Aug 11, 2017
1 parent 001754e commit 85497d5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions simhalt.cc
Expand Up @@ -1720,6 +1720,11 @@ void haltestelle_t::search_route_resumable( ware_t &ware )
}
}

// not start halt, not transfer halt -> do not expand further
if( current_halt_data.depth > 0 && !current_node.halt->is_transfer(ware_catg_idx) ) {
continue;
}

if( current_halt_data.depth > max_transfers ) {
// maximum transfer limit is reached -> do not add reachable halts to open list
continue;
Expand Down

0 comments on commit 85497d5

Please sign in to comment.