Codechange: Use track functions.

This commit is contained in:
J0an Josep
2019-01-15 22:37:32 +01:00
committed by PeterN
parent a18b0eba5b
commit a5836874ef
2 changed files with 2 additions and 2 deletions

View File

@@ -59,7 +59,7 @@ public:
/* handle special case - when next tile is destination tile */
if (tile == v->dest_tile) {
/* convert tracks to trackdirs */
TrackdirBits trackdirs = (TrackdirBits)(tracks | ((int)tracks << 8));
TrackdirBits trackdirs = TrackBitsToTrackdirBits(tracks);
/* limit to trackdirs reachable from enterdir */
trackdirs &= DiagdirReachesTrackdirs(enterdir);