From 52a6b4d69f64e140b93ead23198259f6786acec2 Mon Sep 17 00:00:00 2001 From: -StormAx Date: Mon, 5 Aug 2024 06:22:16 +0300 Subject: [PATCH] Fix https://github.com/ddnet/ddnet/issues/8668 --- src/game/server/teams.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/game/server/teams.cpp b/src/game/server/teams.cpp index 200e39741..d7113d57e 100644 --- a/src/game/server/teams.cpp +++ b/src/game/server/teams.cpp @@ -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)