Loading

Paste #pprpjbtbv

  1. Index: pathfinder/yapf/yapf_costrail.hpp
  2. ===================================================================
  3. --- pathfinder/yapf/yapf_costrail.hpp   (revision 27324)
  4. +++ pathfinder/yapf/yapf_costrail.hpp   (working copy)
  5. @@ -487,7 +487,7 @@
  6.  
  7.             /* Move to the next tile/trackdir. */
  8.             tf = &tf_local;
  9. -           tf_local.Init(v, Yapf().GetCompatibleRailTypes(), &Yapf().m_perf_ts_cost);
  10. +           tf_local.Init(v, (RailTypes)(1 << GetTileRailType(cur.tile)), &Yapf().m_perf_ts_cost);
  11.  
  12.             if (!tf_local.Follow(cur.tile, cur.td)) {
  13.                 assert(tf_local.m_err != TrackFollower::EC_NONE);
  14. Index: pathfinder/yapf/yapf_rail.cpp
  15. ===================================================================
  16. --- pathfinder/yapf/yapf_rail.cpp   (revision 27324)
  17. +++ pathfinder/yapf/yapf_rail.cpp   (working copy)
  18. @@ -21,7 +21,7 @@
  19.  
  20.  #include "../../safeguards.h"
  21.  
  22. -#define DEBUG_YAPF_CACHE 0
  23. +#define DEBUG_YAPF_CACHE 1
  24.  
  25.  #if DEBUG_YAPF_CACHE
  26.  template <typename Tpf> void DumpState(Tpf &pf1, Tpf &pf2)
  27.  

Comments