From 31486bcb56c6909ca7fc4a0aa3fa9a7e9d794ab6 Mon Sep 17 00:00:00 2001 From: Anonymous-275 Date: Wed, 31 Mar 2021 19:27:05 +0300 Subject: [PATCH] Car limit fix --- src/TServer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TServer.cpp b/src/TServer.cpp index 64be37e..ab7ddd1 100644 --- a/src/TServer.cpp +++ b/src/TServer.cpp @@ -180,7 +180,7 @@ bool TServer::ShouldSpawn(TClient& c, const std::string& CarJson, int ID) { return true; } - return c.GetCarCount() < Application::Settings.MaxCars; + return c.GetCarCount() <= Application::Settings.MaxCars; } void TServer::ParseVehicle(TClient& c, const std::string& Pckt, TNetwork& Network) {