X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2F3d%2Flayout.cpp;h=fdb4dfc24d5477672ae6fd361f989880dcc5659a;hb=d6816c177ee8d5f5191e833dce8e3c4e7e0222bf;hp=be19b0020a9a2680b64e4750690cd288b0b8c1c6;hpb=346d933cb7d5d2e016ce235fb4336e202ca7708e;p=r2c2.git diff --git a/source/3d/layout.cpp b/source/3d/layout.cpp index be19b00..fdb4dfc 100644 --- a/source/3d/layout.cpp +++ b/source/3d/layout.cpp @@ -1,6 +1,7 @@ #include "beamgate.h" #include "layout.h" #include "signal.h" +#include "terrain.h" #include "track.h" #include "utility.h" #include "vehicle.h" @@ -86,6 +87,8 @@ void Layout3D::object_added(Object &o) new Vehicle3D(*this, *v); else if(BeamGate *g = dynamic_cast(&o)) new BeamGate3D(*this, *g); + else if(Terrain *r = dynamic_cast(&o)) + new Terrain3D(*this, *r); } void Layout3D::object_removed(Object &o)