mirror of
https://github.com/electronicarts/CNC_TS_and_RA2_Mission_Editor.git
synced 2025-07-18 04:06:42 -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
|
@ -893,7 +893,7 @@ void CFinalSunDlg::SaveMap(CString FileName_)
|
|||
for (i = 0; i < Map->GetWaypointCount(); i++) {
|
||||
CString id;
|
||||
DWORD pos;
|
||||
Map->GetWaypointData(i, &id, &pos);
|
||||
Map->GetNthWaypointData(i, &id, &pos);
|
||||
int idi;
|
||||
idi = atoi(id);
|
||||
if (idi != i) break;
|
||||
|
@ -1055,7 +1055,7 @@ void CFinalSunDlg::SaveMap(CString FileName_)
|
|||
for (i = 0; i < Map->GetWaypointCount(); i++) {
|
||||
CString id;
|
||||
DWORD pos;
|
||||
Map->GetWaypointData(i, &id, &pos);
|
||||
Map->GetNthWaypointData(i, &id, &pos);
|
||||
int idi;
|
||||
idi = atoi(id);
|
||||
if (idi != i) {
|
||||
|
@ -1822,8 +1822,8 @@ void CFinalSunDlg::OnFileNew()
|
|||
last_succeeded_operation = 11003;
|
||||
|
||||
// create map function was created for SP. Fix it here;
|
||||
Map->DeleteWaypoint(0);
|
||||
Map->DeleteWaypoint(0);
|
||||
Map->DeleteWaypoint(98);
|
||||
Map->DeleteWaypoint(99);
|
||||
int midx = Map->GetIsoSize() / 2;
|
||||
int midy = Map->GetIsoSize() / 2;
|
||||
Map->AddWaypoint("0", midx + midy * Map->GetIsoSize());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue