From 71fa444424be52b9b2c3fd508ad663923d28a62c Mon Sep 17 00:00:00 2001 From: Steven Fuller Date: Sat, 28 Jul 2001 23:13:49 +0000 Subject: Removed headers that were accidently checked in. Lots of compiling. --- src/win95/wpchunk.cpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'src/win95/wpchunk.cpp') diff --git a/src/win95/wpchunk.cpp b/src/win95/wpchunk.cpp index c26a5a6..bc20a4f 100644 --- a/src/win95/wpchunk.cpp +++ b/src/win95/wpchunk.cpp @@ -116,6 +116,8 @@ Module_Waypoint_Chunk::Module_Waypoint_Chunk(Chunk_With_Children* parent,const c int first_ground_waypoint=-1; for(int i=0;iindex=i; @@ -139,7 +141,7 @@ Module_Waypoint_Chunk::Module_Waypoint_Chunk(Chunk_With_Children* parent,const c else cw->WayLinks=0; - for(int j=0;jNumWPLinks;j++) + for(j=0;jNumWPLinks;j++) { cw->WayLinks[j]=*(WaypointLink*)data; data+=sizeof(WaypointLink); @@ -244,6 +246,8 @@ void Module_Waypoint_Chunk::fill_data_block(char* data_start) for(int i=0;imin; @@ -270,7 +274,7 @@ void Module_Waypoint_Chunk::fill_data_block(char* data_start) *(int*)data_start=cw->NumWPLinks; data_start+=4; - for(int j=0;jNumWPLinks;j++) + for(j=0;jNumWPLinks;j++) { *(WaypointLink*)data_start=cw->WayLinks[j]; data_start+=sizeof(WaypointLink); @@ -299,9 +303,11 @@ void Module_Waypoint_Chunk::TransferWaypointData(Module_Waypoint_Chunk* mwc_from if(mwc_from->NumWaypoints) { + int i; + ChunkWaypoint* new_wp=new ChunkWaypoint[NumWaypoints+mwc_from->NumWaypoints]; //first take alien waypoints from this chunk - for(int i=0;i