Use correct variable. Fix #2957.

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@16052 3db68df2-c116-0410-a063-a993310a9797
reshuffle the petra deserialization to prevent it to modify the metadata infos

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@16053 3db68df2-c116-0410-a063-a993310a9797
Merge 'remotes/trunk'
various small improvements in petra (choice of units in start game, ram management and team warnings when new trade route available)

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@16054 3db68df2-c116-0410-a063-a993310a9797
Fix performance problem with unnecessary global message subscription

On my ESR31 branch, I've made two measurements with different replays (both around 15000 turns).
In the first, I got around 3% performance improvement and in the second about 7.5%. It mainly depends on how often aura changes related to the female citizen aura happen. 


git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@16055 3db68df2-c116-0410-a063-a993310a9797
Merge 'remotes/trunk'
Fix missing escapes.

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@16056 3db68df2-c116-0410-a063-a993310a9797
Improve performance when looking for new targets.
Tested in combat demo huge where nearly 50% of the replay time is spent looking for new targets, and GetPreference is called a lot as used to sort possible targets.
Caching the preferred classes before the second loop, the replay time of combat demo huge is reduced by about 15%. Replacing the "for each" loops by "for of" loops gains an additionnal 7%.


git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@16057 3db68df2-c116-0410-a063-a993310a9797
Call setlocale(3) on BSDs so that we can log unicode strings. Patch by Teiresias. Fixes #1142.

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@16058 3db68df2-c116-0410-a063-a993310a9797
Report names of components or interfaces in case of error when registering those.

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@16059 3db68df2-c116-0410-a063-a993310a9797
Clarify some comments.

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@16060 3db68df2-c116-0410-a063-a993310a9797
Drop support for AIs that are not using modules.

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@16061 3db68df2-c116-0410-a063-a993310a9797
Merge 'remotes/trunk'
add AI support of maps of different dimensions, see #2960

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@16062 3db68df2-c116-0410-a063-a993310a9797
Fixes obelisks for player 2 and player 3 that were inverted.

Patch by silure, thanks!

Fixes #2962.



git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@16063 3db68df2-c116-0410-a063-a993310a9797
Fixes #2937. Thanks to Lion_Kanzen and Pureon for making icons.

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@16064 3db68df2-c116-0410-a063-a993310a9797
Add missing file in r16064.

Refs: #2937.


git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@16065 3db68df2-c116-0410-a063-a993310a9797
SVN ignore some files.


git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@16066 3db68df2-c116-0410-a063-a993310a9797
Revert r16066, it didn't work as expected.


git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@16067 3db68df2-c116-0410-a063-a993310a9797
Merge 'remotes/trunk'