Add yes-no dialog and general dialog code to present choices to players. Can be used by triggers.

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@15480 3db68df2-c116-0410-a063-a993310a9797
Forward-declare CShaderProgramPtr, to avoid pulling in more headers than necessary and to hypothetically reduce build times by a minuscule amount.


git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@15481 3db68df2-c116-0410-a063-a993310a9797
Make CGUIManager register a callback function for hotloading instead of specifically calling it.

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

Do some intersection tests on the CPU so that the silhouette render passes only have to draw models/patches that might actually contribute to silhouettes, saving the CPU and GPU cost of rendering more objects than necessary.


git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@15483 3db68df2-c116-0410-a063-a993310a9797
Further WIP water improvements. Add 3 different textures for different looks. Update some oasis maps for that. Streamline water settings (some removed, some added). Update Atlas for those (needs to be tested). Fix an issue with HQ water effects.

Please report any issue and/or crash. Those will get fixed in commits to come. Refs #48.

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

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@15485 3db68df2-c116-0410-a063-a993310a9797
Fix random maps for my water changes. Fix the replay mode after I had broken it. Fix an occasional crash (that might have crashed Atlas, need someone to check).
Improve debugging slightly in case of framebuffer errors. Fix a few style issues.

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

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@15487 3db68df2-c116-0410-a063-a993310a9797
Check water FBOs creation correctly to detect some errors. Use two depth textures since I have a hunch the issues people encounter are caused by my using only one.

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

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@15489 3db68df2-c116-0410-a063-a993310a9797
Petra: adapt the AI to gaia now able to launch attacks (with triggers) + cleaning of unused functions

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@15490 3db68df2-c116-0410-a063-a993310a9797
Fix rmgen for my changes, I had missed that, thanks mimo.

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@15491 3db68df2-c116-0410-a063-a993310a9797
Fix "Wind Angle" parameter not working properly. Add a precomputed "wind strength" variable so that waves look smaller behind islands. Some tweaks. Refs #48 as usual.

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@15492 3db68df2-c116-0410-a063-a993310a9797
Makes tinygettext handle missing plural forms more sanely.

Print an error to the console and return the original (untranslated) string instead of triggering an assertion in debug builds or a crash and memory corruption in release builds.
Works around a crash on the history screen. Why the plural form is missing is another topic and will have to be solved separately.


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

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@15494 3db68df2-c116-0410-a063-a993310a9797
Revert obsolete workaround for structured clones.

Reverts r14573 because that workaround isn't needed anymore with SpiderMonkey 24 (and 31).

Refs #2241
Refs #1886


git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@15495 3db68df2-c116-0410-a063-a993310a9797
SpiderMonkey now supports default parameters!

I've just modified those places with TODO comments, but there are most likely others that could benefit of the feature to make the code a bit cleaner and easier to understand.
Thanks to Fabio for pointing it out.
Refs #1886


git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@15496 3db68df2-c116-0410-a063-a993310a9797
Merge 'remotes/trunk'
It would appear like I inadvertently committed a version of the water with some debug information in that made it look black.

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