Thread: code optimize ?
View Single Post
  #1  
Old June 21st, 2002, 09:27 PM
Crazy_Dog's Avatar

Crazy_Dog Crazy_Dog is offline
Corporal
 
Join Date: Feb 2001
Location: Porto Portugal
Posts: 163
Thanks: 0
Thanked 0 Times in 0 Posts
Crazy_Dog is on a distinguished road
Default code optimize ?

After several stategic combats i realized that the program only check if all enemy units are destroyed at the end of the turn.
If the winning fleet have several carriers / fighters, that waste lots of time.
Is better to check after each enemy is destroyed if is the Last and if yes, exit the cycle.

My 2 cents
Reply With Quote