OSDN Git Service

Position the sounds correctly
authorryan <>
Thu, 5 Jan 2017 05:10:17 +0000 (05:10 +0000)
committerryan <>
Thu, 5 Jan 2017 05:10:17 +0000 (05:10 +0000)
src/sbs/escalator.cpp
src/sbs/movingwalkway.cpp

index 647b6db..4da447a 100644 (file)
@@ -68,6 +68,7 @@ Escalator::Escalator(Object *parent, const std::string &name, int run, float spe
        //create sound object
        sound = new Sound(this, name, true);
        sound->Load(sound_file);
+       sound->SetPosition(CenterX, voffset, CenterZ);
 
        //create steps
        CreateSteps(texture, direction, width, risersize, treadsize, tw, th);
index d4975f2..4c239f4 100644 (file)
@@ -67,6 +67,7 @@ MovingWalkway::MovingWalkway(Object *parent, const std::string &name, int run, f
        //create sound object
        sound = new Sound(this, name, true);
        sound->Load(sound_file);
+       sound->SetPosition(CenterX, voffset, CenterZ);
 
        //create steps
        CreateSteps(texture, direction, width, treadsize, tw, th);