Added the ability to disable training/building of entities by triggers. Changes survival of the fittest random map to work with this. Refs #52

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

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@15615 3db68df2-c116-0410-a063-a993310a9797
Fixes r15614 by registering the new DisabledTemplatesChanged message.
Also fixes a typo.

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@15616 3db68df2-c116-0410-a063-a993310a9797
Revert RedFox's changes to Spatial subdivisions in the simplest possible way (hopefully won't cause OOS, but at least we'll get reports). Fixes #2573, Refs #2430 . There probably are opportunities to remove more things.

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@15617 3db68df2-c116-0410-a063-a993310a9797
Fix non-PCH build.

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@15618 3db68df2-c116-0410-a063-a993310a9797
Fix free() of not allocated struct in the UPnP code. Patch by Echelon9. Fixes #2338, #2418.

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@15619 3db68df2-c116-0410-a063-a993310a9797
Fix some errors in WaterManager.

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@15620 3db68df2-c116-0410-a063-a993310a9797
A small change that increases the performance of most random map generation noticeably.

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

Refs #2415


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

Refs #2415
Refs #2462


git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@15623 3db68df2-c116-0410-a063-a993310a9797
Merge 'remotes/trunk'
Exact stack rooting for simulation message type conversions.

Also replaces some deprecated API (jsval typedef and OBJECT_TO_JSVAL) in that part of the code.

Refs #2415


git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@15624 3db68df2-c116-0410-a063-a993310a9797
Prevent copying of ScriptInterface objects.

Copying a ScriptInterface is not allowed. The destructor destroys the JSContext and if there's a copy around that still uses it, that causes crashes which can be quite hard to debug. This change prevents copying by of ScriptInterface objects by making the copy constructor private, which will reveal such errors at compile time.


git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@15625 3db68df2-c116-0410-a063-a993310a9797
Modifies r15625 to use the NONCOPYABLE macro as suggested by leper. 


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

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@15627 3db68df2-c116-0410-a063-a993310a9797
Fix terrain overlay rendering after water.

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

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@15629 3db68df2-c116-0410-a063-a993310a9797
Merge 'remotes/trunk'
Add current time counter which can be triggered using Alt+T. Fixes #2718. Patch by thamlett.

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