diff options
author | peter1138 <peter1138@openttd.org> | 2009-03-04 08:02:16 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2009-03-04 08:02:16 +0000 |
commit | f0de54bc10d158bbb1ae58b628c0896a56880540 (patch) | |
tree | c01ea5ac1459d5c07f3332f8887c8df85fe37e54 /src/yapf/yapf_ship.cpp | |
parent | 0682c1c46cce7b74231486a0b8507e6e7a9b4128 (diff) | |
download | openttd-f0de54bc10d158bbb1ae58b628c0896a56880540.tar.xz |
(svn r15609) -Fix: Code style...
Diffstat (limited to 'src/yapf/yapf_ship.cpp')
-rw-r--r-- | src/yapf/yapf_ship.cpp | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/src/yapf/yapf_ship.cpp b/src/yapf/yapf_ship.cpp index 6f75cba17..fee0eed3c 100644 --- a/src/yapf/yapf_ship.cpp +++ b/src/yapf/yapf_ship.cpp @@ -18,7 +18,10 @@ public: protected: /// to access inherited path finder - FORCEINLINE Tpf& Yapf() {return *static_cast<Tpf*>(this);} + FORCEINLINE Tpf& Yapf() + { + return *static_cast<Tpf*>(this); + } public: /** Called by YAPF to move from the given node to the next tile. For each @@ -27,12 +30,16 @@ public: inline void PfFollowNode(Node& old_node) { TrackFollower F(Yapf().GetVehicle()); - if (F.Follow(old_node.m_key.m_tile, old_node.m_key.m_td)) + if (F.Follow(old_node.m_key.m_tile, old_node.m_key.m_td)) { Yapf().AddMultipleNodes(&old_node, F); + } } /// return debug report character to identify the transportation type - FORCEINLINE char TransportTypeChar() const {return 'w';} + FORCEINLINE char TransportTypeChar() const + { + return 'w'; + } static Trackdir ChooseShipTrack(const Vehicle *v, TileIndex tile, DiagDirection enterdir, TrackBits tracks) { @@ -94,7 +101,10 @@ public: protected: /// to access inherited path finder - Tpf& Yapf() {return *static_cast<Tpf*>(this);} + Tpf& Yapf() + { + return *static_cast<Tpf*>(this); + } public: /** Called by YAPF to calculate the cost from the origin to the given node. @@ -168,7 +178,7 @@ Trackdir YapfChooseShipTrack(const Vehicle *v, TileIndex tile, DiagDirection ent } /** performance measurement helper */ -void * NpfBeginInterval() +void *NpfBeginInterval() { CPerformanceTimer& perf = *new CPerformanceTimer; perf.Start(); |