From 0d64aa31c977fe93641eae50957ce73162bb8b23 Mon Sep 17 00:00:00 2001 From: Stephen Date: Tue, 27 Dec 2022 06:42:08 -0500 Subject: [PATCH] These seem to work --- src/controlpointcontroller.cpp | 26 +------------------------- 1 file changed, 1 insertion(+), 25 deletions(-) diff --git a/src/controlpointcontroller.cpp b/src/controlpointcontroller.cpp index 241dbb61..c21c28ce 100644 --- a/src/controlpointcontroller.cpp +++ b/src/controlpointcontroller.cpp @@ -79,31 +79,7 @@ int GetFarthestOwnedControlPoint(int team) // If we've hit a point we don't own, we're done if (GET_OWNING_TEAM(iPoint) != team) break; - - iFarthestPoint = iPoint; - } - - return iFarthestPoint; -} - -// Can we cap this point? -bool isPointUseable(int index, int team) -{ - // We Own it, can't cap it - if (GET_OWNING_TEAM(index) == team) - return false; - - // Can we cap the point? - if (!TeamCanCapPoint(index, team)) - return false; - - // We are playing a sectioned map, check if the CP is in it - if (CE_VAR(objective_resource, netvar.m_bPlayingMiniRounds, bool) && !IN_MINI_ROUND(index)) - return false; - - // Is the point locked? - if (GET_CP_LOCKED(index)) - return false; +cpcontroller // Linear cap means that it won't require previous points, bail static auto tf_caplinear = g_ICvar->FindVar("tf_caplinear");