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'
Metaprogramming r15576.

Change something on water shaders to see if it works better on ATI cards.

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@15594 3db68df2-c116-0410-a063-a993310a9797
Temporary reversion for a graphic problems with some ATI cards when disabling water reflections.

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@15595 3db68df2-c116-0410-a063-a993310a9797
some cleaning of petra code

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@15596 3db68df2-c116-0410-a063-a993310a9797
Exact stack rooting for structured cloning functions.

Refs #2415
Refs #2462


git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@15597 3db68df2-c116-0410-a063-a993310a9797
Actually fix bugs on ATI cards. Switch reflection and refractions to use POT textures in an attempt to improve compatibility.

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

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@15599 3db68df2-c116-0410-a063-a993310a9797
Removes an unused codepath for AI deserialization and related ScriptInterface code.

It might actually be needed again in the future, but I think even then it would be easier to rewrite it than having to update the code in the meantime.

Refs #2462


git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@15600 3db68df2-c116-0410-a063-a993310a9797
Exact rooting for CallConstructor.

Refs #2415
Refs #2462


git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@15601 3db68df2-c116-0410-a063-a993310a9797
(semi-auto) update scenarios and skirmishes water settings (type and waviness). Probably errs on the "not enough" side.

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@15602 3db68df2-c116-0410-a063-a993310a9797
Exact stack rooting for JSON related ScriptInterface functions.

Refs #2415
Refs #2462


git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@15603 3db68df2-c116-0410-a063-a993310a9797
Batch-change RM map water type and waviness settings. Again, this errs on the "not enough" side.

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@15604 3db68df2-c116-0410-a063-a993310a9797
Exact stack rooting for ScriptInterface::ToString.

I had to change a few other functions to take JS::MutableHandleValue because JS::Stringify takes a JS::MutableHandleValue as input parameter. That seems a bit strange because it should not change that value.
I assume it has historical reasons.

Refs #2415
Refs #2462


git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@15605 3db68df2-c116-0410-a063-a993310a9797
Exact stack rooting for GetClass and GetPrivate.

Refs #2415


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