From 8f6ed10a8e709b033314cd9de8c24d82e867fc15 Mon Sep 17 00:00:00 2001 From: Benau Date: Sun, 14 Oct 2018 10:07:09 +0800 Subject: [PATCH] Fix ctf time limit formula --- src/network/protocols/server_lobby.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/network/protocols/server_lobby.cpp b/src/network/protocols/server_lobby.cpp index 395e00532..6c0c5601a 100644 --- a/src/network/protocols/server_lobby.cpp +++ b/src/network/protocols/server_lobby.cpp @@ -2006,9 +2006,9 @@ std::pair ServerLobby::getHitCaptureLimit(float num_karts) } if (ServerConfig::m_time_limit_threshold_ctf > 0.0f) { - time_limit = fmaxf(2.0f, num_karts * + time_limit = fmaxf(3.0f, num_karts * (ServerConfig::m_time_limit_threshold_ctf + - ServerConfig::m_flag_return_timemout / 60.f) * 60.0f); + ServerConfig::m_flag_return_timemout / 60.f)) * 60.0f; } } else