#25, fixed waypoint related issue .

This commit is contained in:
Zero Fanker 2024-06-17 13:34:12 -04:00
parent 29caa6b9d8
commit f5817e91ff
7 changed files with 46 additions and 29 deletions

View file

@ -1567,7 +1567,7 @@ void CIsoView::OnMouseMove(UINT nFlags, CPoint point)
for (i = 0; i < Map->GetWaypointCount(); i++) {
CString id;
DWORD pos;
Map->GetWaypointData(i, &id, &pos);
Map->GetNthWaypointData(i, &id, &pos);
if (atoi(id) == e) bFound = TRUE;
if (bFound) break;
}
@ -6151,7 +6151,7 @@ void CIsoView::FocusWaypoint(int index)
DWORD dwPos;
Map->GetWaypointData(index, NULL, &dwPos);
Map->GetNthWaypointData(index, NULL, &dwPos);
x = dwPos % Map->GetIsoSize();
y = dwPos / Map->GetIsoSize();