Changes between Initial Version and Version 1 of Ticket #3586, comment 1


Ignore:
Timestamp:
Feb 13, 2016, 3:20:50 AM (8 years ago)
Author:
otero

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #3586, comment 1

    initial v1  
    11Fixed and changed the basic class where the AI is searching for the default templates. This could the beginning of a bigger patch that is required in petra AI, for some reason the methods findBestTrainableUnit and trainMoreWorkers are called constantly even when the AI doesn't have more populace or resources available. Probably is possible to improve performance if this little details are fixed.
    22
    3 As a suggestion I propose to add a ticket to make a little cleaning of the code respect to tabs and empty spaces. I've found several files (inside this patch an another I'm working) where the use of tabs and 4 spaces is combined, at the same time empty lines with tabs or spaces are in the files. I suggest to make the changes to the most common configuration as is always end with new line, 4 spaces instead of tabs and eliminate all the empty spaces after code. In this patch my text editor made those changes and now the file changed in the patch has a combination, but the patch would become unnecessarily bloated if I change all the file, if there is a problem with this please let me know.
     3As a suggestion I propose to add a ticket to make a little cleaning of the code respect to tabs and empty spaces. I've found several files (inside this patch an another I'm working) where the use of tabs and 4 spaces is combined, at the same time empty lines with tabs or spaces are in the files. In this patch my text editor made those changes and now the file changed in the patch has a combination, but the patch would become unnecessarily bloated if I change all the file, if there is a problem with this please let me know.