Rename pathfinding types to DHXJ: MovementOpenList -> CPriorityQueue, MovementPathNodeCompare -> NodeTotalGreater, MovementPathNode -> PathNode, MovementRoutePoint -> PathCell. Pure rename, codegen unchanged.
This commit is contained in:
parent
e67abcb458
commit
591a7db26b
5 changed files with 39 additions and 39 deletions
|
|
@ -120,7 +120,7 @@ bool CNavigationManager::BuildRoute(int startX, int startY, int destX, int destY
|
|||
int offsetX;
|
||||
int offsetY;
|
||||
const float scale = this->FitToSquare(&offsetX, &offsetY, width, height, 126.0f);
|
||||
for (const MovementRoutePoint& point : this->movementRoute.points) {
|
||||
for (const PathCell& point : this->movementRoute.points) {
|
||||
NaviCell cell;
|
||||
cell.x = static_cast<int>(point.x * scale + offsetX);
|
||||
cell.y = static_cast<int>(126.0f - (point.y * scale + offsetY));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue