Changeset - r21037:25a2ae9a83c2
[Not reviewed]
master
0 1 0
rubidium - 11 years ago 2013-11-26 10:00:15
rubidium@openttd.org
(svn r26117) -Cleanup: unneeded NULL check
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/pathfinder/yapf/yapf_ship.cpp
Show inline comments
 
@@ -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;
 
		}
0 comments (0 inline, 0 general)