OSDN Git Service
(root)
/
skyscrapersim
/
skyscraper.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b0b8ef4
)
Position the sounds correctly
author
ryan
<>
Thu, 5 Jan 2017 05:10:17 +0000
(
05:10
+0000)
committer
ryan
<>
Thu, 5 Jan 2017 05:10:17 +0000
(
05:10
+0000)
src/sbs/escalator.cpp
patch
|
blob
|
history
src/sbs/movingwalkway.cpp
patch
|
blob
|
history
diff --git
a/src/sbs/escalator.cpp
b/src/sbs/escalator.cpp
index
647b6db
..
4da447a
100644
(file)
--- a/
src/sbs/escalator.cpp
+++ b/
src/sbs/escalator.cpp
@@
-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);
diff --git
a/src/sbs/movingwalkway.cpp
b/src/sbs/movingwalkway.cpp
index
d4975f2
..
4c239f4
100644
(file)
--- a/
src/sbs/movingwalkway.cpp
+++ b/
src/sbs/movingwalkway.cpp
@@
-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);