OSDN Git Service

Tread fixes
authorryan <>
Sun, 25 Dec 2016 05:59:45 +0000 (05:59 +0000)
committerryan <>
Sun, 25 Dec 2016 05:59:45 +0000 (05:59 +0000)
src/sbs/escalator.cpp

index d4650ba..e88ad96 100644 (file)
@@ -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")
                {