From 86b5d9157959e24e75ae80844d00738beaf66365 Mon Sep 17 00:00:00 2001 From: Anonymous-275 Date: Wed, 31 Mar 2021 19:31:45 +0300 Subject: [PATCH] Try to fix max car limit --- src/TServer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TServer.cpp b/src/TServer.cpp index ab7ddd1..d782f6e 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 Application::Settings.MaxCars > c.GetCarCount(); } void TServer::ParseVehicle(TClient& c, const std::string& Pckt, TNetwork& Network) {