X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flibr2c2%2Fvehicletype.cpp;h=52dc7b0f45edf2f99fd9fc0257ef3bbb982fbbda;hb=251270c97a5e5eb8630bc1662a406255dedae90e;hp=4f640193d025f433a86c81a2d5813c112200890d;hpb=ce8be590703fdc0709863f0ee9695f40b6adb200;p=r2c2.git diff --git a/source/libr2c2/vehicletype.cpp b/source/libr2c2/vehicletype.cpp index 4f64019..52dc7b0 100644 --- a/source/libr2c2/vehicletype.cpp +++ b/source/libr2c2/vehicletype.cpp @@ -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 */ @@ -27,7 +27,7 @@ unsigned VehicleType::get_max_function() const return (--functions.end())->first; } -const VehicleType::Axle &VehicleType::get_axle(unsigned i) const +const VehicleType::Axle &VehicleType::get_fixed_axle(unsigned i) const { if(i>=axles.size()) throw InvalidParameterValue("Axle index out of range"); @@ -232,8 +232,8 @@ void VehicleType::Rod::Loader::connect(const string &t, float px, float pz, floa if(i==tags.end()) throw KeyError("Unknown rod tag", t); obj.connect_index = i->second; - obj.connect_point = Point(px/1000, 0, pz/1000); - obj.connect_offset = Point(ox/1000, 0, oz/1000); + obj.connect_point = Vector(px/1000, 0, pz/1000); + obj.connect_offset = Vector(ox/1000, 0, oz/1000); } void VehicleType::Rod::Loader::pivot_body() @@ -265,7 +265,7 @@ void VehicleType::Rod::Loader::pivot_rod(const string &t) void VehicleType::Rod::Loader::position(float x, float y, float z) { - obj.pivot_point = Point(x/1000, y/1000, z/1000); + obj.pivot_point = Vector(x/1000, y/1000, z/1000); } void VehicleType::Rod::Loader::set_tag(const string &t)