Fix: axis wrong rotation func_door_rotating from touch the player

This commit is contained in:
s1lentq 2015-12-11 02:40:04 +06:00
parent 70dc948091
commit 27424741a0

View File

@ -595,7 +595,7 @@ void CBaseDoor::DoorGoUp(void)
{
if (toActivator.x <= hiX)
{
if (toActivator.y > loY)
if (toActivator.y < loY)
sign = (momentArmX > 0) ? 1 : -1;
else if (toActivator.y > hiY)
sign = (momentArmX < 0) ? 1 : -1;