diff options
author | rubidium <rubidium@openttd.org> | 2008-06-02 06:44:06 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-06-02 06:44:06 +0000 |
commit | 3efece128469f5bcee86e350f910c9efe40ff2f6 (patch) | |
tree | f0769372f37b0f18b63ea52080267ad955972437 /src/yapf/yapf_costrail.hpp | |
parent | 10b494d260ca14b77ff18048c02c61d6e805d824 (diff) | |
download | openttd-3efece128469f5bcee86e350f910c9efe40ff2f6.tar.xz |
(svn r13357) -Codechange: add constness to YAPF.
Diffstat (limited to 'src/yapf/yapf_costrail.hpp')
-rw-r--r-- | src/yapf/yapf_costrail.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/yapf/yapf_costrail.hpp b/src/yapf/yapf_costrail.hpp index eaba2fe80..abd421068 100644 --- a/src/yapf/yapf_costrail.hpp +++ b/src/yapf/yapf_costrail.hpp @@ -191,7 +191,7 @@ public: FORCEINLINE int PlatformLengthPenalty(int platform_length) { int cost = 0; - const Vehicle* v = Yapf().GetVehicle(); + const Vehicle *v = Yapf().GetVehicle(); assert(v != NULL); assert(v->type == VEH_TRAIN); assert(v->u.rail.cached_total_length != 0); @@ -261,7 +261,7 @@ public: int segment_entry_cost = 0; int segment_cost = 0; - const Vehicle* v = Yapf().GetVehicle(); + const Vehicle *v = Yapf().GetVehicle(); // start at n.m_key.m_tile / n.m_key.m_td and walk to the end of segment TILE cur(n.m_key.m_tile, n.m_key.m_td); |