aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBarichello <artur@barichello.me>2022-01-16 15:48:30 -0300
committerBarichello <artur@barichello.me>2022-01-16 16:00:13 -0300
commit89863e43f4bceb2ab842335e8c3aea3c3b25b269 (patch)
tree178abcbb93c055f37776b4cfab97fe51ac9e69e5
parent2d3fc63d2f271c5cb42e2fac99fefa5c6598fb59 (diff)
downloadNorthstarMods-89863e43f4bceb2ab842335e8c3aea3c3b25b269.tar.gz
NorthstarMods-89863e43f4bceb2ab842335e8c3aea3c3b25b269.zip
Prevent game from crashing when contesting unassigned hardpoint
-rw-r--r--Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_cp.nut1
1 files changed, 0 insertions, 1 deletions
diff --git a/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_cp.nut b/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_cp.nut
index 15259ae6..56e1d04f 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
{