(svn r6406) -Codechange: Rename TileOffsByDir to TileOffsByDiagDir because it accepts
DiagDirections, and add TileOffsByDir that handles Directions. -Codechange: Make the treeloop use TileOffsByDir().
This commit is contained in:
2
npf.c
2
npf.c
@@ -183,7 +183,7 @@ static uint NPFTunnelCost(AyStarNode* current)
|
||||
|
||||
static uint NPFSlopeCost(AyStarNode* current)
|
||||
{
|
||||
TileIndex next = current->tile + TileOffsByDir(TrackdirToExitdir(current->direction));
|
||||
TileIndex next = current->tile + TileOffsByDiagDir(TrackdirToExitdir(current->direction));
|
||||
int x,y;
|
||||
int8 z1,z2;
|
||||
|
||||
|
Reference in New Issue
Block a user