OSDN Git Service

Fixed click-shift order
authorryan <>
Mon, 26 Dec 2016 20:34:24 +0000 (20:34 +0000)
committerryan <>
Mon, 26 Dec 2016 20:34:24 +0000 (20:34 +0000)
src/sbs/escalator.cpp

index 35bf84e..56c6f2a 100644 (file)
@@ -381,10 +381,10 @@ void Escalator::OnClick(Ogre::Vector3 &position, bool shift, bool ctrl, bool alt
        if (shift == true)
        {
                if (Run == 1)
-                       Run = -1;
-               else if (Run == -1)
                        Run = 0;
                else if (Run == 0)
+                       Run = -1;
+               else if (Run == -1)
                        Run = 1;
        }
 }