Fixes possible memory leaks by only allocating wave vertex buffers once and only when needed, and releasing them before re-allocating (in case CreateSuperfancyInfo is called multiple times).
Checks if wave vertex buffers were allocated before rendering, fixes #2017

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

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@13562 3db68df2-c116-0410-a063-a993310a9797
Fixes an issue with Aegis and the iberians

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

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@13564 3db68df2-c116-0410-a063-a993310a9797
Implements entity terrain anchoring as a visual effect, based on patch by sanderd17, fixes #1988.
Sets cavalry and quadrupedal animals to 'pitch' anchoring. Cleans up mine templates.

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

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@13566 3db68df2-c116-0410-a063-a993310a9797
Implements shared trade gain with allies, patch by mimo, fixes #1691

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