mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-13 01:29:10 +00:00
(svn r1967) Codechange: A mix of mostly indentation-related tidyups.
This commit is contained in:
7
npf.c
7
npf.c
@@ -95,7 +95,8 @@ const byte _reverse_trackdir[14] = {
|
||||
*/
|
||||
#define NPF_STRAIGHT_LENGTH (uint)(NPF_TILE_LENGTH * 0.7071)
|
||||
static const uint _trackdir_length[14] = {
|
||||
NPF_TILE_LENGTH, NPF_TILE_LENGTH, NPF_STRAIGHT_LENGTH, NPF_STRAIGHT_LENGTH, NPF_STRAIGHT_LENGTH, NPF_STRAIGHT_LENGTH, 0, 0,
|
||||
NPF_TILE_LENGTH, NPF_TILE_LENGTH, NPF_STRAIGHT_LENGTH, NPF_STRAIGHT_LENGTH, NPF_STRAIGHT_LENGTH, NPF_STRAIGHT_LENGTH,
|
||||
0, 0,
|
||||
NPF_TILE_LENGTH, NPF_TILE_LENGTH, NPF_STRAIGHT_LENGTH, NPF_STRAIGHT_LENGTH, NPF_STRAIGHT_LENGTH, NPF_STRAIGHT_LENGTH
|
||||
};
|
||||
|
||||
@@ -785,7 +786,7 @@ void InitializeNPF(void)
|
||||
_npf_aystar.loops_per_tick = 0;
|
||||
_npf_aystar.max_path_cost = 0;
|
||||
_npf_aystar.max_search_nodes = 0;
|
||||
/*
|
||||
#if 0
|
||||
init_AyStar(&_train_find_station, NTPHash, 1024);
|
||||
init_AyStar(&_train_find_depot, NTPHash, 1024);
|
||||
init_AyStar(&_road_find_station, NTPHash, 1024);
|
||||
@@ -830,7 +831,7 @@ void InitializeNPF(void)
|
||||
_train_find_depot.GetNeighbours = NPFFollowTrack;
|
||||
_road_find_station.GetNeighbours = NPFFollowTrack;
|
||||
_road_find_depot.GetNeighbours = NPFFollowTrack;
|
||||
*/
|
||||
#endif
|
||||
}
|
||||
|
||||
void NPFFillWithOrderData(NPFFindStationOrTileData* fstd, Vehicle* v) {
|
||||
|
Reference in New Issue
Block a user