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
|
@ -577,7 +577,7 @@ int get_player_count()
|
|||
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;
|
||||
|
@ -1983,7 +1983,7 @@ void CUserScriptsDlg::OnOK()
|
|||
int k;
|
||||
for (k = 0; k < Map->GetWaypointCount(); k++) {
|
||||
CString id;
|
||||
Map->GetWaypointData(k, &id, &pos);
|
||||
Map->GetNthWaypointData(k, &id, &pos);
|
||||
|
||||
if (id == params[0]) {
|
||||
bFound = TRUE;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue