summaryrefslogtreecommitdiff
path: root/src/pathfind.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-01-10 00:31:47 +0000
committerrubidium <rubidium@openttd.org>2009-01-10 00:31:47 +0000
commit11da45ee55957c243854cd78705d81543541c061 (patch)
tree29e703244d28f29c8634b2d30f42b34852fe74bc /src/pathfind.cpp
parentc3839648f75ebfdca2f7d95b7d6a2b29445ab1c2 (diff)
downloadopenttd-11da45ee55957c243854cd78705d81543541c061.tar.xz
(svn r14949) -Cleanup: pointer coding style
Diffstat (limited to 'src/pathfind.cpp')
-rw-r--r--src/pathfind.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/pathfind.cpp b/src/pathfind.cpp
index e6a27df72..eb43d7d85 100644
--- a/src/pathfind.cpp
+++ b/src/pathfind.cpp
@@ -110,7 +110,7 @@ static bool TPFSetTileBit(TrackPathFinder *tpf, TileIndex tile, int dir)
return true;
}
-static void TPFModeShip(TrackPathFinder* tpf, TileIndex tile, DiagDirection direction)
+static void TPFModeShip(TrackPathFinder *tpf, TileIndex tile, DiagDirection direction)
{
assert(tpf->tracktype == TRANSPORT_WATER);
@@ -198,7 +198,7 @@ static inline bool CanAccessTileInDir(TileIndex tile, DiagDirection side, Transp
return true;
}
-static void TPFModeNormal(TrackPathFinder* tpf, TileIndex tile, DiagDirection direction)
+static void TPFModeNormal(TrackPathFinder *tpf, TileIndex tile, DiagDirection direction)
{
const TileIndex tile_org = tile;
@@ -396,7 +396,7 @@ static inline void HeapifyDown(NewTrackPathFinder *tpf)
/** mark a tile as visited and store the length of the path.
* if we already had a better path to this tile, return false.
* otherwise return true. */
-static bool NtpVisit(NewTrackPathFinder* tpf, TileIndex tile, DiagDirection dir, uint length)
+static bool NtpVisit(NewTrackPathFinder *tpf, TileIndex tile, DiagDirection dir, uint length)
{
uint hash,head;
HashLink *link, *new_link;
@@ -538,7 +538,7 @@ static const byte _length_of_track[16] = {
* Tile is the tile the train is at.
* direction is the tile the train is moving towards. */
-static void NTPEnum(NewTrackPathFinder* tpf, TileIndex tile, DiagDirection direction)
+static void NTPEnum(NewTrackPathFinder *tpf, TileIndex tile, DiagDirection direction)
{
TrackBits bits, allbits;
Trackdir track;
@@ -788,7 +788,7 @@ start_at:
/** new pathfinder for trains. better and faster. */
-void NewTrainPathfind(TileIndex tile, TileIndex dest, RailTypes railtypes, DiagDirection direction, NTPEnumProc* enum_proc, void* data)
+void NewTrainPathfind(TileIndex tile, TileIndex dest, RailTypes railtypes, DiagDirection direction, NTPEnumProc *enum_proc, void *data)
{
SmallStackSafeStackAlloc<NewTrackPathFinder, 1> tpf;