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
More exact stack rooting (CallFunction object).

Changes CallFunction and CallFunctionVoid to use a HandleValue as object parameter. Also changes some JS serialization/deserialization functions to only support the JSAPI rooted types (drop support for CScriptVal and CScriptValRooted there). Some other functions got changed too because they were closely related.

Refs #2415
Refs #2462


git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@15592 3db68df2-c116-0410-a063-a993310a9797
Petra: some adjustements on naval transport

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