aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDLL/r2server.h
diff options
context:
space:
mode:
authorBobTheBob9 <for.oliver.kirkham@gmail.com>2022-09-15 00:20:56 +0100
committerBobTheBob9 <for.oliver.kirkham@gmail.com>2022-09-15 00:20:56 +0100
commitba26be9bea801f219fa6340178fd6b13f02d574e (patch)
treef50e67e06f7174daca0c97cf95659c7cbcef8151 /NorthstarDLL/r2server.h
parentd2907aa522d56a4baacec1c17426f7d6f1fae3a2 (diff)
downloadNorthstarLauncher-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.h9
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