diff options
author | rubidium <rubidium@openttd.org> | 2013-11-26 10:00:15 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2013-11-26 10:00:15 +0000 |
commit | f6691015603cc931fb7f61d0bd3d05ebef226ed5 (patch) | |
tree | 22eae5ce75ae8842ef7d1d7c1c1b19431b1f21c7 /src/pathfinder/yapf/yapf_ship.cpp | |
parent | 04e97a0bec525975ec4594a2abf542964a1e0d25 (diff) | |
download | openttd-f6691015603cc931fb7f61d0bd3d05ebef226ed5.tar.xz |
(svn r26117) -Cleanup: unneeded NULL check
Diffstat (limited to 'src/pathfinder/yapf/yapf_ship.cpp')
-rw-r--r-- | src/pathfinder/yapf/yapf_ship.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pathfinder/yapf/yapf_ship.cpp b/src/pathfinder/yapf/yapf_ship.cpp index 37edf2719..5e1cd27e7 100644 --- a/src/pathfinder/yapf/yapf_ship.cpp +++ b/src/pathfinder/yapf/yapf_ship.cpp @@ -167,7 +167,7 @@ public: /* base tile cost depending on distance */ int c = IsDiagonalTrackdir(n.GetTrackdir()) ? YAPF_TILE_LENGTH : YAPF_TILE_CORNER_LENGTH; /* additional penalty for curves */ - if (n.m_parent != NULL && n.GetTrackdir() != NextTrackdir(n.m_parent->GetTrackdir())) { + if (n.GetTrackdir() != NextTrackdir(n.m_parent->GetTrackdir())) { /* new trackdir does not match the next one when going straight */ c += YAPF_TILE_LENGTH; } |