From e03a6952794abea4a490228b480aed197a994c34 Mon Sep 17 00:00:00 2001 From: Batfoxkid Date: Thu, 7 Jul 2022 18:18:16 -0700 Subject: [PATCH] Fix for 7/7/2022 TF2 Update --- addons/sourcemod/scripting/freak_fortress_2.sp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/sourcemod/scripting/freak_fortress_2.sp b/addons/sourcemod/scripting/freak_fortress_2.sp index 38722b3c..ec7ee4f2 100644 --- a/addons/sourcemod/scripting/freak_fortress_2.sp +++ b/addons/sourcemod/scripting/freak_fortress_2.sp @@ -590,7 +590,7 @@ void teamplay_round_start_TeleportToMultiMapSpawn() continue; iSkip[iInt++] = iClient; - int iIndex = s_hSpawnArray.Push(EntIndexToEntRef(iEnt)); + int iIndex = s_hSpawnArray.Push(iEnt); s_hSpawnArray.Set(iIndex, iTeam, 1); // Opposite team becomes an invalid ent } } @@ -606,14 +606,14 @@ int TeleportToMultiMapSpawn(int iClient, TFTeam iTeam=TFTeam_Unassigned) TFTeam iTeleTeam; if(iTeam <= TFTeam_Spectator) { - iSpawn = EntRefToEntIndex(GetRandBlockCellEx(s_hSpawnArray)); + iSpawn = GetRandBlockCellEx(s_hSpawnArray); } else { do iTeleTeam = view_as(Utils_GetRandBlockCell(s_hSpawnArray, iIndex, 1)); while (iTeleTeam != iTeam); - iSpawn = EntRefToEntIndex(GetArrayCell(s_hSpawnArray, iIndex, 0)); + iSpawn = GetArrayCell(s_hSpawnArray, iIndex, 0); } Utils_TeleMeToYou(iClient, iSpawn); return iSpawn;