npf.c
changeset 1981 de031d2aed47
parent 1967 c57192f4c121
child 1983 0e87e9e56f0a
equal deleted inserted replaced
1980:9ea0c89fbb58 1981:de031d2aed47
    79 		ty = y2;
    79 		ty = y2;
    80 	else
    80 	else
    81 		ty = y3;
    81 		ty = y3;
    82 
    82 
    83 	// return the tile of our target coordinates
    83 	// return the tile of our target coordinates
    84 	return TILE_XY(tx,ty);
    84 	return TileXY(tx, ty);
    85 };
    85 };
    86 
    86 
    87 /* Calcs the heuristic to the target station or tile. For train stations, it
    87 /* Calcs the heuristic to the target station or tile. For train stations, it
    88  * takes into account the direction of approach.
    88  * takes into account the direction of approach.
    89  */
    89  */