Fix HasSoulgem function to return number of soulgems
Implement terrain rendering in OpenCS (Fixes #1597)
Avoid out of range exceptions.
Merge remote-tracking branch 'scrawl/terrain'
Merge remote-tracking branch 'scrawl/master'