diff options
author | KUDr <kudr@openttd.org> | 2007-06-29 23:45:13 +0000 |
---|---|---|
committer | KUDr <kudr@openttd.org> | 2007-06-29 23:45:13 +0000 |
commit | c37dc87ad2392c52628b24a2c281f784852372b0 (patch) | |
tree | e40b1c0408670ce5543e72064145c4f7559c5004 /src/yapf/yapf_rail.cpp | |
parent | a88a1b6f5305971f1f357048c636d3a85b23cb70 (diff) | |
download | openttd-c37dc87ad2392c52628b24a2c281f784852372b0.tar.xz |
(svn r10392) -Add [YAPF]: added structured dump support into some essential YAPF classes (node-list, nodes, keys, etc.) and CArrayT
Diffstat (limited to 'src/yapf/yapf_rail.cpp')
-rw-r--r-- | src/yapf/yapf_rail.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/yapf/yapf_rail.cpp b/src/yapf/yapf_rail.cpp index 1437356f4..964993bf4 100644 --- a/src/yapf/yapf_rail.cpp +++ b/src/yapf/yapf_rail.cpp @@ -132,6 +132,15 @@ public: Trackdir result2 = pf2.ChooseRailTrack(v, tile, enterdir, tracks, path_not_found); if (result1 != result2) { DEBUG(yapf, 0, "CACHE ERROR: ChooseRailTrack() = [%d, %d]", result1, result2); + DumpTarget dmp1, dmp2; + pf1.DumpBase(dmp1); + pf2.DumpBase(dmp2); + FILE *f1 = fopen("C:\\yapf1.txt", "wt"); + FILE *f2 = fopen("C:\\yapf2.txt", "wt"); + fwrite(dmp1.m_out.Data(), 1, dmp1.m_out.Size(), f1); + fwrite(dmp2.m_out.Data(), 1, dmp2.m_out.Size(), f2); + fclose(f1); + fclose(f2); } #endif |