-Codechange: Use the ride type access function instead of directly accessing the data.


git-svn-id: https://freerct.googlecode.com/svn/trunk@1115 d3bf82d2-0c16-e458-5408-27be57bd1276