]> git.tdb.fi Git - r2c2.git/blobdiff - source/3d/vehicletype.cpp
Rename various get_axle functions to get_fixed_axle
[r2c2.git] / source / 3d / vehicletype.cpp
index 27fb883a985241ef12b66ea8a4e56d5cff9f91b3..162b2c42110a4cd1d67100e43c5fe04e01124ee2 100644 (file)
@@ -1,7 +1,7 @@
 /* $Id$
 
 This file is part of R²C²
-Copyright © 2010  Mikkosoft Productions, Mikko Rasa
+Copyright © 2010-2011  Mikkosoft Productions, Mikko Rasa
 Distributed under the GPL
 */
 
@@ -39,7 +39,7 @@ VehicleType3D::VehicleType3D(Catalogue3D &c, const VehicleType &t):
 {
        body_object = get_object(type.get_object());
 
-       const vector<VehicleType::Axle> &axles = type.get_axles();
+       const vector<VehicleType::Axle> &axles = type.get_fixed_axles();
        for(vector<VehicleType::Axle>::const_iterator i=axles.begin(); i!=axles.end(); ++i)
                axle_objects[0].push_back(get_object(i->object));
 
@@ -63,7 +63,7 @@ VehicleType3D::~VehicleType3D()
                delete i->second;
 }
 
-const GL::Object *VehicleType3D::get_axle_object(unsigned i) const
+const GL::Object *VehicleType3D::get_fixed_axle_object(unsigned i) const
 {
        if(i>=axle_objects[0].size())
                throw InvalidParameterValue("Axle index out of range");