From 89863e43f4bceb2ab842335e8c3aea3c3b25b269 Mon Sep 17 00:00:00 2001 From: Barichello Date: Sun, 16 Jan 2022 15:48:30 -0300 Subject: Prevent game from crashing when contesting unassigned hardpoint --- Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_cp.nut | 1 - 1 file changed, 1 deletion(-) diff --git a/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_cp.nut b/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_cp.nut index 15259ae69..56e1d04f6 100644 --- a/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_cp.nut +++ b/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_cp.nut @@ -240,7 +240,6 @@ void function HardpointThink( HardpointStruct hardpoint ) if(hardpointBlocked) { SetHardpointState(hardpoint,CAPTURE_POINT_STATE_HALTED) - SetHardpointCappingTeam(hardpoint,GetOtherTeam(hardpointEnt.GetTeam())) } else if(cappingTeam==TEAM_UNASSIGNED)//nobody on point { -- cgit v1.2.3