mirror of
https://github.com/electronicarts/CNC_TS_and_RA2_Mission_Editor.git
synced 2025-07-17 19:56:38 -04:00
#25, fixed waypoint related issue .
This commit is contained in:
parent
29caa6b9d8
commit
f5817e91ff
7 changed files with 46 additions and 29 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue