From 5a98b1763e6a1c2f29998fa7c5d70c857cfe344b Mon Sep 17 00:00:00 2001 From: Roman Chistokhodov Date: Wed, 8 May 2024 21:31:50 +0300 Subject: [PATCH] Fix func_door_rotating with 'Starts Open' spawnflag --- dlls/doors.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/doors.cpp b/dlls/doors.cpp index 1f5b4b0653..cb18c201b9 100644 --- a/dlls/doors.cpp +++ b/dlls/doors.cpp @@ -892,7 +892,7 @@ void CRotDoor::Spawn( void ) { // swap pos1 and pos2, put door at pos2, invert movement direction pev->angles = m_vecAngle2; - Vector vecSav = m_vecAngle1; + Vector vecSav = m_vecAngle2; m_vecAngle2 = m_vecAngle1; m_vecAngle1 = vecSav; pev->movedir = pev->movedir * -1.0f;