From 3ec1361ed96c9c9f256629d82dcde52e852adf50 Mon Sep 17 00:00:00 2001 From: Maurice Heumann Date: Tue, 7 Feb 2023 19:27:03 +0100 Subject: [PATCH] Remove debug count --- src/client/component/getinfo.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/client/component/getinfo.cpp b/src/client/component/getinfo.cpp index c1b20bd6..1bfbc829 100644 --- a/src/client/component/getinfo.cpp +++ b/src/client/component/getinfo.cpp @@ -45,14 +45,14 @@ namespace getinfo int get_client_count() { - int count =1; + int count = 0; const auto client_states = *reinterpret_cast(game::select(0x1576FB318, 0x14A178E98)); const auto object_length = game::is_server() ? 0xE5110 : 0xE5170; - for(int i = 0; i < get_max_client_count(); ++i) + for (int i = 0; i < get_max_client_count(); ++i) { const auto client_state = *reinterpret_cast(client_states + (i * object_length)); - if(client_state > 0) + if (client_state > 0) { ++count; } @@ -71,7 +71,7 @@ namespace getinfo { return (rand() % 2) + 1; } - + struct component final : generic_component { void post_unpack() override