From 1cc57ac7ca8f15dd037d6591f87843ecab06e41c Mon Sep 17 00:00:00 2001 From: songhao Date: Fri, 24 Aug 2018 07:47:03 -0400 Subject: [PATCH] 1 --- cpp/tiledmap.cc | 2 +- cpp/tiledmap.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cpp/tiledmap.cc b/cpp/tiledmap.cc index b1d8dd1..112b62f 100644 --- a/cpp/tiledmap.cc +++ b/cpp/tiledmap.cc @@ -269,7 +269,7 @@ void TiledMap::Dump() } } -bool TiledMap::CalcCurrPos(std::list& path_points, int old_pos_x, int old_pos_y, int time_ms, int& curr_pos_x, int& curr_pos_y) +bool TiledMap::CalcCurrPos(std::vector& path_points, int old_pos_x, int old_pos_y, int time_ms, int& curr_pos_x, int& curr_pos_y) { if (path_points.size() < 2) { return false; diff --git a/cpp/tiledmap.h b/cpp/tiledmap.h index cd2bdfc..e72b054 100644 --- a/cpp/tiledmap.h +++ b/cpp/tiledmap.h @@ -68,7 +68,7 @@ class TiledMap bool HasStagePath(const std::string& path_name); std::vector SortGridList(std::vector* grid_list, StagePoint* sp); - bool CalcCurrPos(std::list& path_points, int old_pos_x, int old_pos_y, int time_ms, int& curr_pos_x, int& curr_pos_y); + bool CalcCurrPos(std::vector& path_points, int old_pos_x, int old_pos_y, int time_ms, int& curr_pos_x, int& curr_pos_y); private: std::map> layer_hash;