From: Mikko Rasa Date: Fri, 22 Nov 2013 11:05:57 +0000 (+0200) Subject: Save terrain position and rotation X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=f459a73d543b663afeb5a7b4796b04f76860e383;p=r2c2.git Save terrain position and rotation --- diff --git a/source/libr2c2/terrain.cpp b/source/libr2c2/terrain.cpp index 502a8c7..7b8f9f5 100644 --- a/source/libr2c2/terrain.cpp +++ b/source/libr2c2/terrain.cpp @@ -159,6 +159,8 @@ Terrain::NodeCoordinates Terrain::get_closest_node(const Ray &ray) const void Terrain::save(list &st) const { + st.push_back((DataFile::Statement("position"), position.x, position.y, position.z)); + st.push_back((DataFile::Statement("rotation"), rotation.radians())); st.push_back((DataFile::Statement("size"), width, height)); for(vector::const_iterator i=tiles.begin(); i!=tiles.end(); ++i) {