summaryrefslogtreecommitdiff
path: root/src/pathfinder
diff options
context:
space:
mode:
authorCharles Pigott <charlespigott@googlemail.com>2019-04-22 08:03:04 +0100
committerPeterN <peter@fuzzle.org>2019-04-29 17:40:22 +0100
commit9f3928658bb3f8aaf21b17e0144cb09722474fff (patch)
tree4bb17710202180968891733fd0a50c5d71f60974 /src/pathfinder
parent931d32f4145e36ef08b432314353ff9f058f6a08 (diff)
downloadopenttd-9f3928658bb3f8aaf21b17e0144cb09722474fff.tar.xz
Codechange: Remove Track{dir,}{Bits,}Byte types
Diffstat (limited to 'src/pathfinder')
-rw-r--r--src/pathfinder/yapf/yapf_road.cpp4
-rw-r--r--src/pathfinder/yapf/yapf_ship.cpp4
2 files changed, 2 insertions, 6 deletions
diff --git a/src/pathfinder/yapf/yapf_road.cpp b/src/pathfinder/yapf/yapf_road.cpp
index 3122dd111..9e206115f 100644
--- a/src/pathfinder/yapf/yapf_road.cpp
+++ b/src/pathfinder/yapf/yapf_road.cpp
@@ -390,9 +390,7 @@ public:
while (pNode->m_parent != nullptr) {
steps--;
if (pNode->GetIsChoice() && steps < YAPF_ROADVEH_PATH_CACHE_SEGMENTS) {
- TrackdirByte td;
- td = pNode->GetTrackdir();
- path_cache.td.push_front(td);
+ path_cache.td.push_front(pNode->GetTrackdir());
path_cache.tile.push_front(pNode->GetTile());
}
pNode = pNode->m_parent;
diff --git a/src/pathfinder/yapf/yapf_ship.cpp b/src/pathfinder/yapf/yapf_ship.cpp
index e7391d686..09a4fc76a 100644
--- a/src/pathfinder/yapf/yapf_ship.cpp
+++ b/src/pathfinder/yapf/yapf_ship.cpp
@@ -98,9 +98,7 @@ public:
while (pNode->m_parent != nullptr) {
steps--;
if (steps > 0 && steps < YAPF_SHIP_PATH_CACHE_LENGTH) {
- TrackdirByte td;
- td = pNode->GetTrackdir();
- path_cache.push_front(td);
+ path_cache.push_front(pNode->GetTrackdir());
}
pPrevNode = pNode;
pNode = pNode->m_parent;