-/* $Id$
-
-This file is part of R²C²
-Copyright © 2010-2011 Mikkosoft Productions, Mikko Rasa
-Distributed under the GPL
-*/
-
#include <cmath>
#include <msp/gl/matrix.h>
#include <msp/gl/renderer.h>
vehicle(v),
type(layout.get_catalogue().get_vehicle(vehicle.get_type()))
{
- unsigned n_axles = vehicle.get_type().get_axles().size();
+ unsigned n_axles = vehicle.get_type().get_fixed_axles().size();
for(unsigned i=0; i<n_axles; ++i)
- if(type.get_axle_object(i))
+ if(type.get_fixed_axle_object(i))
{
Axle3D *a = new Axle3D(*this, i);
axles.push_back(a);