Skip to content
Permalink
Browse files

Allow replay change if there is no current replay

  • Loading branch information...
TotallyMehis committed Jul 31, 2019
1 parent 5e657f2 commit 73ccb86d3fa6d22c42a0061b1444e1325ab28934
Showing with 8 additions and 0 deletions.
  1. +8 −0 addons/sourcemod/scripting/influx_recording.sp
@@ -1328,6 +1328,14 @@ stock void ReplayOwn( int client )

stock bool CanChangeReplay( int issuer = 0, bool bCanAdminOverride = true )
{
// No replay in the first place, just change.
if ( g_hReplay == null || g_hReplay.Length < 1 )
return true;
// We're at the end of the replay, sure.
if ( IsValidReplayBot() && g_nCurRec[g_iReplayBot] == PLAYBACK_END )
return true;


if ( g_bForcedReplay && (!bCanAdminOverride || !CanUserChangeReplay( issuer )) )
{
if ( issuer )

0 comments on commit 73ccb86

Please sign in to comment.
You can’t perform that action at this time.