From 1db20d8a811ab78f873990ff8deb27c00d346f20 Mon Sep 17 00:00:00 2001 From: Roman Chistokhodov Date: Tue, 6 Aug 2019 22:32:17 +0300 Subject: [PATCH] Fix gonome's player locking --- dlls/gearbox/gonome.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/gearbox/gonome.cpp b/dlls/gearbox/gonome.cpp index a3518f56..cee47722 100644 --- a/dlls/gearbox/gonome.cpp +++ b/dlls/gearbox/gonome.cpp @@ -242,7 +242,7 @@ void CGonome::UnlockPlayer() else // if ehandle is empty for some reason just unlock the first player player = (CBasePlayer*)UTIL_FindEntityByClassname(0, "player"); - if (player && player->IsAlive()) + if (player) player->EnableControl(TRUE); m_lockedPlayer = 0;