diff options
author | BobTheBob9 <for.oliver.kirkham@gmail.com> | 2022-09-15 00:20:56 +0100 |
---|---|---|
committer | BobTheBob9 <for.oliver.kirkham@gmail.com> | 2022-09-15 00:20:56 +0100 |
commit | ba26be9bea801f219fa6340178fd6b13f02d574e (patch) | |
tree | f50e67e06f7174daca0c97cf95659c7cbcef8151 /NorthstarDLL/r2server.h | |
parent | d2907aa522d56a4baacec1c17426f7d6f1fae3a2 (diff) | |
download | NorthstarLauncher-ba26be9bea801f219fa6340178fd6b13f02d574e.tar.gz NorthstarLauncher-ba26be9bea801f219fa6340178fd6b13f02d574e.zip |
clang format, fix issues with server registration and rpak loading
Diffstat (limited to 'NorthstarDLL/r2server.h')
-rw-r--r-- | NorthstarDLL/r2server.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/NorthstarDLL/r2server.h b/NorthstarDLL/r2server.h index fdfae156..58b39a05 100644 --- a/NorthstarDLL/r2server.h +++ b/NorthstarDLL/r2server.h @@ -7,6 +7,13 @@ namespace R2 class CBaseEntity; extern CBaseEntity* (*Server_GetEntityByIndex)(int index); - class CBasePlayer; +#pragma pack(push, 1) + struct CBasePlayer + { + char pad[88]; + int m_nPlayerIndex; + }; +#pragma pack(pop) + extern CBasePlayer*(__fastcall* UTIL_PlayerByIndex)(int playerIndex); } // namespace R2 |