add back car deletion

This commit is contained in:
Lion Kortlepel
2024-09-18 16:46:11 +02:00
parent 0cc73e70c9
commit 3068a0e5c4
2 changed files with 2 additions and 1 deletions

View File

@@ -137,7 +137,6 @@ void TServer::RemoveClient(const std::weak_ptr<TClient>& WeakClientPtr) {
beammp_assert(LockedClientPtr != nullptr);
TClient& Client = *LockedClientPtr;
beammp_debug("removing client " + Client.GetName() + " (" + std::to_string(ClientCount()) + ")");
// TODO: Send delete packets for all cars
Client.ClearCars();
WriteLock Lock(mClientsMutex);
mClients.erase(WeakClientPtr.lock());