Skip to content
This repository has been archived by the owner on Sep 4, 2022. It is now read-only.

Commit

Permalink
Fix for 7/7/2022 TF2 Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Batfoxkid committed Jul 8, 2022
1 parent f07988f commit e03a695
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions addons/sourcemod/scripting/freak_fortress_2.sp
Expand Up @@ -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
}
}
Expand All @@ -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<TFTeam>(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;
Expand Down

0 comments on commit e03a695

Please sign in to comment.