From 8bb7522a58a2d09723a090ed5c563027fbe3db2b Mon Sep 17 00:00:00 2001 From: Brandon Hammer Date: Sat, 14 Nov 2020 04:09:21 +0000 Subject: [PATCH] Revert change for how client address + offset is handled for each player. --- functions.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/functions.cpp b/functions.cpp index 33a92c9..366419a 100644 --- a/functions.cpp +++ b/functions.cpp @@ -80,12 +80,12 @@ namespace Game int clientAddr{ 0x02347CD4 - 0x57F8 }; int clanTagAddr{ 0x6C }; int clientOffset{ 0x57F8 }; - int client{ (clientAddr + clientOffset) }; + //int client{ (clientAddr + clientOffset) }; //lol, that's not right. for (int i = 1; i < 9; i++) { - memcpy((void*)currentname, (void*)(client * i), 16); + memcpy((void*)currentname, (void*)((clientAddr + (clientOffset * i)), 16); currentname_str = std::string(currentname, 16); - memcpy((void*)currentClanTag, (void*)((client * i) + clanTagAddr), 8); + memcpy((void*)currentClanTag, (void*)(((clientAddr +(clientOffset * i)) + clanTagAddr), 8); if ((strstr(currentClanTag, "Creator") == NULL) && (strstr(currentClanTag, "Admin") == NULL) && (strstr(currentClanTag, "Trusted") == NULL) && (strstr(currentClanTag, "Mod") == NULL) && (strstr(currentClanTag, "Owner") == NULL) && (strstr(currentClanTag, "3arc") == NULL) && (strncmp(currentname, emptyname, 16) != 0)) { changeClanTag_str = ClanTagRequest(currentname);