This commit is contained in:
songhao 2018-08-24 07:47:03 -04:00
parent 5bc827bd2f
commit 1cc57ac7ca
2 changed files with 2 additions and 2 deletions

View File

@ -269,7 +269,7 @@ void TiledMap::Dump()
}
}
bool TiledMap::CalcCurrPos(std::list<int>& 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<int>& 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;

View File

@ -68,7 +68,7 @@ class TiledMap
bool HasStagePath(const std::string& path_name);
std::vector<GridCell*> SortGridList(std::vector<GridCell*>* grid_list, StagePoint* sp);
bool CalcCurrPos(std::list<int>& 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<int>& path_points, int old_pos_x, int old_pos_y, int time_ms, int& curr_pos_x, int& curr_pos_y);
private:
std::map<std::string, std::list<TiledLayer>> layer_hash;