OSDN Git Service

Fixed an issue where the ShaftShowFloors command would cause the destination floor...
authorryan <>
Mon, 30 Jun 2014 20:57:10 +0000 (20:57 +0000)
committerryan <>
Mon, 30 Jun 2014 20:57:10 +0000 (20:57 +0000)
src/sbs/shaft.cpp

index 4a5ad9d..26c1265 100644 (file)
@@ -909,7 +909,7 @@ void Shaft::Check(Ogre::Vector3 position, int current_floor)
                        elevator->ShaftDoorsEnabledRange(0, current_floor, sbs->ShaftDisplayRange);
                }
 
-               if (InsideShaft == false && sbs->InElevator == true && elevator->IsMoving == true)
+               if (InsideShaft == false && sbs->InElevator == true && elevator->IsMoving == true && elevator->Leveling == false)
                {
                        //if specified, show floors or outside if user is in a moving elevator
                        if (ShowFloors == true)