From ceea4927df5b0e98221a7af6406315c41ab63250 Mon Sep 17 00:00:00 2001 From: peter1138 Date: Wed, 4 Mar 2009 08:02:16 +0000 Subject: (svn r15609) -Fix: Code style... --- src/yapf/yapf_ship.cpp | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) (limited to 'src/yapf/yapf_ship.cpp') 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(this);} + FORCEINLINE Tpf& Yapf() + { + return *static_cast(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(this);} + Tpf& Yapf() + { + return *static_cast(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(); -- cgit v1.2.3-54-g00ecf