X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2F3d%2Fbogie.cpp;h=234bd88a403559b795db56f86ae655064ef31296;hb=598631d530a20ba8f4710f45747a9742e149f604;hp=de7d1bbac2b270d35bbd52a69a38703c365d8fae;hpb=4b7008978ce5b67e7e1db14b4a359e4ab1881bbd;p=r2c2.git diff --git a/source/3d/bogie.cpp b/source/3d/bogie.cpp index de7d1bb..234bd88 100644 --- a/source/3d/bogie.cpp +++ b/source/3d/bogie.cpp @@ -38,7 +38,10 @@ void Bogie3D::setup_render(Msp::GL::Renderer &renderer, const GL::Tag &) const matrix.rotate(vehicle.get_direction(), 0, 0, 1); matrix.translate(bogie.type->position, 0, 0); - matrix.rotate(bogie.direction, 0, 0, 1); + float dir = bogie.direction; + if(bogie.type->rotate_object) + dir += M_PI; + matrix.rotate(dir, 0, 0, 1); renderer.matrix_stack() *= matrix; }