Revert change for how client address + offset is handled for each player.

This commit is contained in:
Brandon Hammer 2020-11-14 04:09:21 +00:00
parent 23868d39b2
commit 8bb7522a58

View File

@ -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);