From daf8a4fe9d261effffc253b50e2e21ff9fa0b81f Mon Sep 17 00:00:00 2001 From: Sam V Date: Mon, 28 Mar 2022 14:23:56 +0200 Subject: [PATCH] Set think to null after stopping sound ValveSoftware/halflife#3265 --- dlls/doors.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/doors.cpp b/dlls/doors.cpp index 75b27376..123fcc95 100644 --- a/dlls/doors.cpp +++ b/dlls/doors.cpp @@ -1096,4 +1096,5 @@ void CMomentaryDoor::StopMoveSound() { STOP_SOUND(ENT(pev), CHAN_STATIC, (char*)STRING(pev->noiseMoving)); EMIT_SOUND(ENT(pev), CHAN_STATIC, (char*)STRING(pev->noiseArrived), 1, ATTN_NORM); + SetThink(nullptr); }