X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2F3d%2Fcatalogue.cpp;h=935219ed75e268347ea654e20d9aa6f56e7215e3;hb=850c1d571f2d2d157a873b678d86e4a5c771ba26;hp=8d31219eb24dfabc1c718457be7db9fda7c5ac76;hpb=4236c30c0a7a48854e9634e9ad7d8d6e0fd243a3;p=r2c2.git diff --git a/source/3d/catalogue.cpp b/source/3d/catalogue.cpp index 8d31219..935219e 100644 --- a/source/3d/catalogue.cpp +++ b/source/3d/catalogue.cpp @@ -16,11 +16,11 @@ Catalogue3D::Catalogue3D(Catalogue &c): catalogue(c), endpoint_mesh((GL::NORMAL3, GL::VERTEX3)) { - add_creator(&Catalogue3D::create); - add_creator(&Catalogue3D::create); - add_creator(&Catalogue3D::create2); - add_creator(&Catalogue3D::create); - add_creator(&Catalogue3D::create2); + add_type().creator(&Catalogue3D::create); + add_type().creator(&Catalogue3D::create); + add_type().creator(&Catalogue3D::create); + add_type().creator(&Catalogue3D::create); + add_type().creator(&Catalogue3D::create); catalogue.signal_track_added.connect(sigc::mem_fun(this, &Catalogue3D::track_added)); catalogue.signal_vehicle_added.connect(sigc::mem_fun(this, &Catalogue3D::vehicle_added)); @@ -94,7 +94,7 @@ FS::Path Catalogue3D::locate_file(const string &name) if(FS::exists(path)) return path; - throw Exception("Can't locate "+name); + throw runtime_error("Can't locate "+name); } template