don't create duplicate waypoints

This commit is contained in:
Goober5000 committed 2009-09-28 01:54:06 +00:00
1 parent f3fa70b18b
commit 076cbcf818
1 file changed
-7
-7
View File
@@ -383,13 +383,6 @@ int CFREDDoc::load_mission(char *pathname, int flags)
}
}
for (i=0; i<Num_waypoint_lists; i++) {
wptr = &Waypoint_lists[i];
for (j=0; j<wptr->count; j++){
ob = obj_create(OBJ_WAYPOINT, -1, i * 65536 + j, NULL, &wptr->waypoints[j], 0.0f, OF_RENDERS);
}
}
obj_merge_created_list();
objp = GET_FIRST(&obj_used_list);
while (objp != END_OF_LIST(&obj_used_list)) {