Skip to content

Commit 8b449c9

Browse files
committed
Allowed sliding type doors (Closes #73)
1 parent f60d0c7 commit 8b449c9

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/xrGame/PhysicObject.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -889,8 +889,11 @@ bool CPhysicObject::get_door_vectors(Fvector& closed, Fvector& open) const
889889

890890
const SJointIKData& joint = bd.IK_data;
891891

892-
if (joint.type != jtJoint)
893-
return false;
892+
// Xottab_DUTY: commented this to allow sliding type doors
893+
// https://github.com/OpenXRay/xray-16/issues/73
894+
/*if (joint.type != jtJoint)
895+
return false;*/
896+
894897
const Fvector2& limits = joint.limits[1].limit;
895898

896899
// if( limits.y < EPS ) //limits.y - limits.x < EPS

0 commit comments

Comments
 (0)