equal
deleted
inserted
replaced
68 return true; |
68 return true; |
69 } |
69 } |
70 |
70 |
71 return false; |
71 return false; |
72 } |
72 } |
73 }; |
73 } |
74 |
74 |
75 #if 0 |
75 #if 0 |
76 static uint NTPHash(uint key1, uint key2) |
76 static uint NTPHash(uint key1, uint key2) |
77 { |
77 { |
78 /* This function uses the old hash, which is fixed on 10 bits (1024 buckets) */ |
78 /* This function uses the old hash, which is fixed on 10 bits (1024 buckets) */ |
125 // same for y coordinate, see above comment |
125 // same for y coordinate, see above comment |
126 y = clamp(TileY(tile), miny, maxy); |
126 y = clamp(TileY(tile), miny, maxy); |
127 |
127 |
128 // return the tile of our target coordinates |
128 // return the tile of our target coordinates |
129 return TileXY(x, y); |
129 return TileXY(x, y); |
130 }; |
130 } |
131 |
131 |
132 /* On PBS pathfinding runs, this is called before pathfinding ends (BeforeExit aystar callback), and will |
132 /* On PBS pathfinding runs, this is called before pathfinding ends (BeforeExit aystar callback), and will |
133 * reserve the appropriate tracks, if needed. */ |
133 * reserve the appropriate tracks, if needed. */ |
134 void NPFReservePBSPath(AyStar *as) |
134 void NPFReservePBSPath(AyStar *as) |
135 { |
135 { |