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
Exact stack rooting for WriteStructuredClone and functions that use it.

Refs #2415


git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@15607 3db68df2-c116-0410-a063-a993310a9797
Merge 'remotes/trunk'
Link actor editor built in debug mode to debug version of atlasUI. Fixes #2655. Patch by Echelon9.

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@15608 3db68df2-c116-0410-a063-a993310a9797
Support more mouse buttons. Fixes #195. Patch by 01d55 with some minor cleanup.

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@15609 3db68df2-c116-0410-a063-a993310a9797
Fixed some keys not being recognized after r15609. Refs #195.

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@15610 3db68df2-c116-0410-a063-a993310a9797
Fixes crash when loading maps in Atlas.

The ScriptInterface pointer can be NULL there, so using it without checking is not safe.
This fixes the problem by continuing with the exact stack rooting changes, which makes the temporary solution unnecessary.

Fixes #2707
Refs #2415


git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@15611 3db68df2-c116-0410-a063-a993310a9797
Hide changes to buildings in the fog-of-war.

To achieve this, mirage entities are created per player, to replace the real entities when these ones fall into the fog-of-war. These mirage entities are created on-the-fly, and destroyed when they get back in sight.
This depends heavily on the VisibilityChanged message added in r15508.

As a temporary adjustment, territories do not explore the map anymore when their borders change. See #2709.

Fixes #599

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