diff --git a/bot/main.h b/bot/main.h index aa5935f..77cdfa9 100644 --- a/bot/main.h +++ b/bot/main.h @@ -12,6 +12,7 @@ #include #endif +#define MAX_PLAYER_NAME 24 #define MAX_SETTINGS_STRING 256 typedef struct _GAME_SETTINGS { diff --git a/bot/net/playerpool.h b/bot/net/playerpool.h index b13a82d..952cc8b 100644 --- a/bot/net/playerpool.h +++ b/bot/net/playerpool.h @@ -1,11 +1,13 @@ +#pragma once + class CPlayerPool // size: 41035 { private: int field_0[1000]; - //char _gapFA0[2]; - //char field_FA2[25]; - char _gapFA0[25027]; + char _gapFA0[2]; + CHAR m_szLocalPlayerName[MAX_PLAYER_NAME+1]; + char gapFBB[25000]; int field_7163; int field_7167[1000]; int field_8107; @@ -14,7 +16,7 @@ private: public: - void SetLocalPlayerName(PCHAR szName) {}; // TODO: CPlayerPool::SetLocalPlayerName + void SetLocalPlayerName(PCHAR szName) { strcpy(m_szLocalPlayerName,szName); }; CPlayerPool(); }; \ No newline at end of file