1
0
Fork 0

(svn r1967) Codechange: A mix of mostly indentation-related tidyups.

release/0.4.5
pasky 2005-03-08 22:21:20 +00:00
parent 83d3f85636
commit 0e367ba541
1 changed files with 74 additions and 73 deletions

7
npf.c
View File

@ -95,7 +95,8 @@ const byte _reverse_trackdir[14] = {
*/ */
#define NPF_STRAIGHT_LENGTH (uint)(NPF_TILE_LENGTH * 0.7071) #define NPF_STRAIGHT_LENGTH (uint)(NPF_TILE_LENGTH * 0.7071)
static const uint _trackdir_length[14] = { 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 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.loops_per_tick = 0;
_npf_aystar.max_path_cost = 0; _npf_aystar.max_path_cost = 0;
_npf_aystar.max_search_nodes = 0; _npf_aystar.max_search_nodes = 0;
/* #if 0
init_AyStar(&_train_find_station, NTPHash, 1024); init_AyStar(&_train_find_station, NTPHash, 1024);
init_AyStar(&_train_find_depot, NTPHash, 1024); init_AyStar(&_train_find_depot, NTPHash, 1024);
init_AyStar(&_road_find_station, NTPHash, 1024); init_AyStar(&_road_find_station, NTPHash, 1024);
@ -830,7 +831,7 @@ void InitializeNPF(void)
_train_find_depot.GetNeighbours = NPFFollowTrack; _train_find_depot.GetNeighbours = NPFFollowTrack;
_road_find_station.GetNeighbours = NPFFollowTrack; _road_find_station.GetNeighbours = NPFFollowTrack;
_road_find_depot.GetNeighbours = NPFFollowTrack; _road_find_depot.GetNeighbours = NPFFollowTrack;
*/ #endif
} }
void NPFFillWithOrderData(NPFFindStationOrTileData* fstd, Vehicle* v) { void NPFFillWithOrderData(NPFFindStationOrTileData* fstd, Vehicle* v) {