npf.c
changeset 1981 3c9c682f1212
parent 1967 a01f4d5dd957
child 1983 4fcefeef2feb
equal deleted inserted replaced
1980:6c5917cfcb78 1981:3c9c682f1212
    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  */