diff options
author | glx <glx@openttd.org> | 2006-09-06 14:24:43 +0000 |
---|---|---|
committer | glx <glx@openttd.org> | 2006-09-06 14:24:43 +0000 |
commit | f70064e7aa32e7b725a4038a575d839e1c279944 (patch) | |
tree | 1647d1786493bdb7a1cb6c2c650ddb8a08c926a5 /yapf/yapf_base.hpp | |
parent | 39ba62d48fbcc549833175c4d421b66a27141b0e (diff) | |
download | openttd-f70064e7aa32e7b725a4038a575d839e1c279944.tar.xz |
(svn r6411) -Fix(r6410): forgot to update openttd*.sln (thx Darkvater and michi_cc :) )
-Cleanup: Removed UNITTEST preprocessor checks
Diffstat (limited to 'yapf/yapf_base.hpp')
-rw-r--r-- | yapf/yapf_base.hpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/yapf/yapf_base.hpp b/yapf/yapf_base.hpp index 98ca6ba9c..9c140e5b6 100644 --- a/yapf/yapf_base.hpp +++ b/yapf/yapf_base.hpp @@ -76,13 +76,8 @@ public: FORCEINLINE CYapfBaseT() : m_pBestDestNode(NULL) , m_pBestIntermediateNode(NULL) -#if defined(UNITTEST) - , m_settings(NULL) - , m_max_search_nodes(100000) -#else , m_settings(&_patches.yapf) , m_max_search_nodes(PfGetSettings().max_search_nodes) -#endif , m_veh(NULL) , m_stats_cost_calcs(0) , m_stats_cache_hits(0) @@ -151,11 +146,7 @@ public: float cache_hit_ratio = (float)m_stats_cache_hits / (float)(m_stats_cache_hits + m_stats_cost_calcs) * 100.0f; int cost = bDestFound ? m_pBestDestNode->m_cost : -1; int dist = bDestFound ? m_pBestDestNode->m_estimate - m_pBestDestNode->m_cost : -1; -#ifdef UNITTEST - printf("%c%c%4d-%6d us -%5d rounds -%4d open -%5d closed - CHR %4.1f%% - c/d(%d, %d) - c%d(sc%d, ts%d, o%d) -- \n", bDestFound ? '-' : '!', ttc, veh_idx, t, m_num_steps, m_nodes.OpenCount(), m_nodes.ClosedCount(), cache_hit_ratio, cost, dist, m_perf_cost.Get(1000000), m_perf_slope_cost.Get(1000000), m_perf_ts_cost.Get(1000000), m_perf_other_cost.Get(1000000)); -#else DEBUG(yapf, 3)("[YAPF][YAPF%c]%c%4d- %d us - %d rounds - %d open - %d closed - CHR %4.1f%% - c%d(sc%d, ts%d, o%d) -- ", ttc, bDestFound ? '-' : '!', veh_idx, t, m_num_steps, m_nodes.OpenCount(), m_nodes.ClosedCount(), cache_hit_ratio, cost, dist, m_perf_cost.Get(1000000), m_perf_slope_cost.Get(1000000), m_perf_ts_cost.Get(1000000), m_perf_other_cost.Get(1000000)); -#endif return bDestFound; } |