petra: temporary fix, waiting to be able to deal with training restrictions

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@15575 3db68df2-c116-0410-a063-a993310a9797
Commit coastal waves when activating fancy effects, and incidentally completely change how this effect work. Refs #48.

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@15576 3db68df2-c116-0410-a063-a993310a9797
Automated build.

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@15577 3db68df2-c116-0410-a063-a993310a9797
fix #2691, Petra should not try to unload allied garrisoned inside its buildings

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@15578 3db68df2-c116-0410-a063-a993310a9797
Petra: proper fix for the juggernaut limit reported by brian

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@15579 3db68df2-c116-0410-a063-a993310a9797
Merge 'remotes/trunk'
Fix a UnitAI issue where a builder would become idle if, upon completion of a foundation, it was close enough to immediately start working on another foundation. This was particularly infuriating with palisades.

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@15580 3db68df2-c116-0410-a063-a993310a9797
let allies build and repair stuff

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@15581 3db68df2-c116-0410-a063-a993310a9797
Petra: prevent stuck units when a transport ship is destroyed

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@15582 3db68df2-c116-0410-a063-a993310a9797
Merge 'remotes/trunk'
Petra: prevent overseas attack to try to start before dock construction

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@15583 3db68df2-c116-0410-a063-a993310a9797
Handle callback functions when using the "leave" hotkey (by default Esc) to close a message box.

Fixes #2635

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@15584 3db68df2-c116-0410-a063-a993310a9797
remove the hardcoded StartingCamera of player 3 which was pointing to player 1 location

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@15585 3db68df2-c116-0410-a063-a993310a9797
Small code style fix, related to a typo in the documentation. Also updates the Example component's copyright to match the current year.

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@15586 3db68df2-c116-0410-a063-a993310a9797
Petra: small changes in naval transport to (hopefully) make it more robust

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@15587 3db68df2-c116-0410-a063-a993310a9797
Merge 'remotes/trunk'
Add some information about gathered resources to the multiple selection panel's tooltips. Refs #2695

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@15588 3db68df2-c116-0410-a063-a993310a9797
Fixes saving/loading problems introduced in r15568.

 * CGameLoader created a new JS::Value when assigning to m_Metadata. This means it didn't actually update metadata in SavedGames::Load. The new approach solves this problem and should work well if CScriptValRooted gets replaced in the future.
 * The cloning in ScriptFunctions.cpp was required. Removing it caused compartment mismatches.
 * Now CGameLoader loads the metadata unconditinally because we didn't actually use the option to not load load it.

Ref #2415


git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@15589 3db68df2-c116-0410-a063-a993310a9797
Avoids dividing by zero when generating Gulf of Bothnia random map with one player. Patch by FeXoR, fixes #2699.

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@15590 3db68df2-c116-0410-a063-a993310a9797
Adds support for passing JS::HandleValue and JS::RootedValue& to CallFunction.

Also adds tests for these cases.

Refs #2415


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