diff options
author | Barichello <artur@barichello.me> | 2022-02-19 01:45:37 -0300 |
---|---|---|
committer | Barichello <artur@barichello.me> | 2022-02-19 01:45:37 -0300 |
commit | f16ec562e355725f965c28e99cd03b6f3d26c1aa (patch) | |
tree | 772af4f707ccb91f88dcc55c98abdc82b6cf594e /Northstar.CustomServers/mod/scripts/vscripts | |
parent | d61f55337296574ed5eb177833b665663fe1d121 (diff) | |
download | NorthstarMods-f16ec562e355725f965c28e99cd03b6f3d26c1aa.tar.gz NorthstarMods-f16ec562e355725f965c28e99cd03b6f3d26c1aa.zip |
Update OnHardpointLeft player removal
Diffstat (limited to 'Northstar.CustomServers/mod/scripts/vscripts')
-rw-r--r-- | Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_cp.nut | 2 |
1 files changed, 1 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 80cf8413..693816d0 100644 --- a/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_cp.nut +++ b/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_cp.nut @@ -667,7 +667,7 @@ void function OnHardpointLeft( entity trigger, entity player ) if ( player.GetTeam() == TEAM_IMC ) hardpoint.imcCappers.remove( hardpoint.imcCappers.find( player ) ) else - hardpoint.militiaCappers.remove( hardpoint.militiaCappers.find( player ) ) + FindAndRemove( hardpoint.militiaCappers, player ) foreach(CP_PlayerStruct playerStruct in file.players) if(playerStruct.player == player) playerStruct.isOnHardpoint = false |