From 684b59a92179e4b1556116e62a60acb0c7be38ed Mon Sep 17 00:00:00 2001 From: Nicholas Hastings Date: Wed, 18 Feb 2015 12:33:37 -0800 Subject: [PATCH] Don't fire forwards if client isn't ingame. --- extensions/tf2/conditions.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/extensions/tf2/conditions.cpp b/extensions/tf2/conditions.cpp index 13082be0..685d2818 100644 --- a/extensions/tf2/conditions.cpp +++ b/extensions/tf2/conditions.cpp @@ -51,6 +51,8 @@ void HandleCondChange(void *pData) void PlayerConditionsMgr::ProcessCondChange(CondChangeData_t *pCondData) { int client = gamehelpers->EntityToBCompatRef(pCondData->pPlayer); + if (!playerhelpers->GetGamePlayer(client)->IsInGame()) + return; int newConds = 0; int prevConds = 0;