Revert change for how client address + offset is handled for each player.
This commit is contained in:
parent
23868d39b2
commit
8bb7522a58
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user