summaryrefslogtreecommitdiff
path: root/yapf/unittest
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2006-09-06 01:56:01 +0000
committerglx <glx@openttd.org>2006-09-06 01:56:01 +0000
commit7c6851b436003e3f4fe694b6bbf751f49d9d3e47 (patch)
treefc36ea231f8fae94996dd2d24463f6a7fbfa59ec /yapf/unittest
parent3fee2555433c62735640c7e99f8a777ba060e5e5 (diff)
downloadopenttd-7c6851b436003e3f4fe694b6bbf751f49d9d3e47.tar.xz
(svn r6408) -Fix(r6406): compilation was broken
-Codechange: Rename TileIndexDiffCByDir to TileIndexDiffCByDiagDir because it accepts DiagDirections
Diffstat (limited to 'yapf/unittest')
-rw-r--r--yapf/unittest/test_yapf.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/yapf/unittest/test_yapf.h b/yapf/unittest/test_yapf.h
index 952040faa..685e6fcf7 100644
--- a/yapf/unittest/test_yapf.h
+++ b/yapf/unittest/test_yapf.h
@@ -169,7 +169,7 @@ struct CYapfTestBaseT
int z_org = Map::MapZ(x_org, y_org);
DiagDirection exitdir = TrackdirToExitdir(org.m_key.m_td);
- TileIndexDiffC diff = TileIndexDiffCByDir(exitdir);
+ TileIndexDiffC diff = TileIndexDiffCByDiagDir(exitdir);
int x_new = x_org + diff.x;
int y_new = y_org + diff.y;
int z_new = Map::MapZ(x_new, y_new);