diff options
author | frosch <frosch@openttd.org> | 2008-06-25 18:46:05 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2008-06-25 18:46:05 +0000 |
commit | 2b071f84ea45790b5e3c6c1a668ddbac87034367 (patch) | |
tree | 24031ec42e26783cfac0ed9981d326b8edbd421b /src/map_func.h | |
parent | b7dfaa2ced05c39089819f09681048ceb56df834 (diff) | |
download | openttd-2b071f84ea45790b5e3c6c1a668ddbac87034367.tar.xz |
(svn r13632) -Codechange: Use 'void *' for user-data of CircularTileSearch().
Diffstat (limited to 'src/map_func.h')
-rw-r--r-- | src/map_func.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map_func.h b/src/map_func.h index a4b3991da..ff539b8af 100644 --- a/src/map_func.h +++ b/src/map_func.h @@ -383,15 +383,15 @@ static inline TileIndex TileAddByDiagDir(TileIndex tile, DiagDirection dir) * A callback function type for searching tiles. * * @param tile The tile to test - * @param data additional data for the callback function to use + * @param user_data additional data for the callback function to use * @return A boolean value, depend on the definition of the function. */ -typedef bool TestTileOnSearchProc(TileIndex tile, uint32 data); +typedef bool TestTileOnSearchProc(TileIndex tile, void *user_data); /** * Searches for some cirumstances of a tile around a given tile with a helper function. */ -bool CircularTileSearch(TileIndex *tile, uint size, TestTileOnSearchProc proc, uint32 data); +bool CircularTileSearch(TileIndex *tile, uint size, TestTileOnSearchProc proc, void *user_data); /** * Get a random tile out of a given seed. |