diff options
author | yexo <yexo@openttd.org> | 2010-02-25 11:52:04 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2010-02-25 11:52:04 +0000 |
commit | 1a89a5fc92f9e1d10b5e298c67d14e8614068742 (patch) | |
tree | 9f57de326bdfe958467509c919672927dbea8c27 /src/pathfinder/yapf | |
parent | 433e1d884cebf8ccf8c0db10cb0edf0e1f3426f0 (diff) | |
download | openttd-1a89a5fc92f9e1d10b5e298c67d14e8614068742.tar.xz |
(svn r19247) -Codechange: Rename methods to fit better to common style (skidd13)
Diffstat (limited to 'src/pathfinder/yapf')
-rw-r--r-- | src/pathfinder/yapf/nodelist.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pathfinder/yapf/nodelist.hpp b/src/pathfinder/yapf/nodelist.hpp index 6ac3b944c..87b262897 100644 --- a/src/pathfinder/yapf/nodelist.hpp +++ b/src/pathfinder/yapf/nodelist.hpp @@ -93,7 +93,7 @@ public: { assert(m_closed.Find(item.GetKey()) == NULL); m_open.Push(item); - m_open_queue.Push(&item); + m_open_queue.Include(&item); if (&item == m_new_node) { m_new_node = NULL; } @@ -130,8 +130,8 @@ public: FORCEINLINE Titem_& PopOpenNode(const Key& key) { Titem_& item = m_open.Pop(key); - int idxPop = m_open_queue.FindLinear(item); - m_open_queue.RemoveByIdx(idxPop); + uint idxPop = m_open_queue.FindIndex(item); + m_open_queue.Remove(idxPop); return item; } |