View Single Post
  #1  
Old 12-18-2011, 02:47 AM
Octocat Octocat is offline
Approved Member
 
Join Date: Dec 2011
Posts: 22
Default

The problem is likely not in aircrafts, but in the side actors such as smoke, debris and craters from bombs, which creates the game itself, and does not remove properly.

My variant of function:

Code:
private void DestroyAircrafts(IGamePlay game)
{
  foreach (int army in game.gpArmies())
    foreach (var group in game.gpAirGroups(army))
      foreach (var item in group.GetItems())
        ((AiAircraft)item).Destroy();
}

Last edited by Octocat; 12-18-2011 at 03:18 AM.
Reply With Quote