X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flibr2c2%2Fvehicle.cpp;h=02fb1afce6d4c719367560d3dbf677e208b1c795;hb=8a31a3ab3ab7abda30de0ed3a6d0753760f3bb1d;hp=79e3cbef9370f57ce0eaaf4c620e90cd4f72daae;hpb=7aa4925ccb632c1a2289335bccd4862e46e10781;p=r2c2.git diff --git a/source/libr2c2/vehicle.cpp b/source/libr2c2/vehicle.cpp index 79e3cbe..02fb1af 100644 --- a/source/libr2c2/vehicle.cpp +++ b/source/libr2c2/vehicle.cpp @@ -355,6 +355,14 @@ int Vehicle::get_link_slot(const Object &other) const return -1; } +bool Vehicle::collide_ray(const Ray &ray) const +{ + if(is_placed()) + return Object::collide_ray(ray); + else + return false; +} + Vehicle::Axle::Axle(const VehicleType::Axle &t): type(&t)