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:
5d3743c
)
Tread fixes
author
ryan
<>
Sun, 25 Dec 2016 05:59:45 +0000
(
05:59
+0000)
committer
ryan
<>
Sun, 25 Dec 2016 05:59:45 +0000
(
05:59
+0000)
src/sbs/escalator.cpp
patch
|
blob
|
history
diff --git
a/src/sbs/escalator.cpp
b/src/sbs/escalator.cpp
index
d4650ba
..
e88ad96
100644
(file)
--- a/
src/sbs/escalator.cpp
+++ b/
src/sbs/escalator.cpp
@@
-183,13
+183,7
@@
void Escalator::CreateSteps(const std::string &texture, const std::string &direc
//create wall object
Wall *wall = Steps[i - 1]->CreateWallObject(base);
- float thickness = 0;
- if (i < num_steps - 1)
- thickness = treadsize * 2;
- if (i == num_steps - 1)
- thickness = treadsize;
- if (i == num_steps)
- thickness = 0;
+ float thickness = treadsize;
if (Direction == "right")
{