X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fdesigner%2Ftrackwrap.cpp;h=65c33d5a1ffb0200ffc13adecfd08aa33fc39d7d;hb=1ff06c5bc46a677fa389ef86c6b26664368f1653;hp=3c5a834badbf2d24a0c581be63009c50189ceea8;hpb=b3a73308d67de22a2d65cc56b14edeab25537eba;p=r2c2.git diff --git a/source/designer/trackwrap.cpp b/source/designer/trackwrap.cpp index 3c5a834..65c33d5 100644 --- a/source/designer/trackwrap.cpp +++ b/source/designer/trackwrap.cpp @@ -1,6 +1,6 @@ /* $Id$ -This file is part of the MSP Märklin suite +This file is part of R²C² Copyright © 2010 Mikkosoft Productions, Mikko Rasa Distributed under the GPL */ @@ -14,7 +14,7 @@ Distributed under the GPL using namespace std; using namespace Msp; -using namespace Marklin; +using namespace R2C2; TrackWrap::TrackWrap(Designer &d, Selection &s): designer(d), @@ -57,10 +57,10 @@ GL::Mesh &TrackWrap::get_mesh(const TrackType &type) const TrackType3D &type3d = designer.get_layout_3d().get_catalogue().get_track(type); float min_area = -1; - float angle; + float angle = 0; Point center; - float width; - float height; + float width = 0; + float height = 0; for(float a=0; a