Merge pull request #3759 from def-/pr-swap

sv_swap_timeout <=
This commit is contained in:
Emir Marincic 2021-04-07 16:37:40 +02:00 committed by GitHub
commit b66a9d6283
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -727,7 +727,7 @@ void CGameTeams::SwapTeamCharacters(CPlayer *pPlayer, CPlayer *pTargetPlayer, in
}
int TimeoutAfterDelay = g_Config.m_SvSaveSwapGamesDelay + g_Config.m_SvSwapTimeout;
if(Since > TimeoutAfterDelay)
if(Since >= TimeoutAfterDelay)
{
str_format(aBuf, sizeof(aBuf),
"Your swap request timed out %d seconds ago. Use /swap again to re-initiate it.",