diff --git a/mp/src/game/server/buttons.cpp b/mp/src/game/server/buttons.cpp index af46d0c4c6f..682433a5ed0 100644 --- a/mp/src/game/server/buttons.cpp +++ b/mp/src/game/server/buttons.cpp @@ -897,6 +897,11 @@ void CRotButton::Spawn( void ) m_fRotating = TRUE; SetUse(&CRotButton::ButtonUse); + + if (HasSpawnFlags(SF_BUTTON_LOCKED)) + { + m_bLocked = true; + } // // If touching activates the button, set its touch function. diff --git a/sp/src/game/server/buttons.cpp b/sp/src/game/server/buttons.cpp index af46d0c4c6f..7028e7605de 100644 --- a/sp/src/game/server/buttons.cpp +++ b/sp/src/game/server/buttons.cpp @@ -898,6 +898,11 @@ void CRotButton::Spawn( void ) SetUse(&CRotButton::ButtonUse); + if (HasSpawnFlags(SF_BUTTON_LOCKED)) + { + m_bLocked = true; + } + // // If touching activates the button, set its touch function. //