Merge pull request #8686 from StormAxs/master

Fix practice finish time
This commit is contained in:
Dennis Felsing 2024-08-05 10:23:07 +00:00 committed by GitHub
commit b50d8eb79e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -346,10 +346,13 @@ void CGameTeams::CheckTeamFinished(int Team)
{
ChangeTeamState(Team, TEAMSTATE_FINISHED);
int min = (int)Time / 60;
float sec = Time - (min * 60.0f);
char aBuf[256];
str_format(aBuf, sizeof(aBuf),
"Your team would've finished in: %d minute(s) %5.2f second(s). Since you had practice mode enabled your rank doesn't count.",
(int)Time / 50 / 60, Time - ((int)Time / 60 * 60));
min, sec);
GameServer()->SendChatTeam(Team, aBuf);
for(unsigned int i = 0; i < PlayersCount; ++i)