diff --git a/rehlds/engine/common.cpp b/rehlds/engine/common.cpp index d6358c7..f65de7d 100644 --- a/rehlds/engine/common.cpp +++ b/rehlds/engine/common.cpp @@ -1299,7 +1299,7 @@ void SZ_Clear(sizebuf_t *buf) buf->cursize = 0; } -void *SZ_GetSpace(sizebuf_t *buf, int length) +void *EXT_FUNC SZ_GetSpace(sizebuf_t *buf, int length) { void *data; const char *buffername = buf->buffername ? buf->buffername : "???"; diff --git a/rehlds/engine/pr_cmds.cpp b/rehlds/engine/pr_cmds.cpp index bfe0672..6e7fcc4 100644 --- a/rehlds/engine/pr_cmds.cpp +++ b/rehlds/engine/pr_cmds.cpp @@ -1182,7 +1182,7 @@ void EXT_FUNC EV_PlayReliableEvent_api(IGameClient *cl, int entindex, short unsi EV_PlayReliableEvent_internal(cl->GetClient(), entindex, eventindex, delay, pargs); } -void EXT_FUNC EV_PlayReliableEvent(client_t *cl, int entindex, short unsigned int eventindex, float delay, event_args_t *pargs) +void EV_PlayReliableEvent(client_t *cl, int entindex, short unsigned int eventindex, float delay, event_args_t *pargs) { g_RehldsHookchains.m_EV_PlayReliableEvent.callChain(EV_PlayReliableEvent_api, GetRehldsApiClient(cl), entindex, eventindex, delay, pargs); } diff --git a/rehlds/engine/sv_steam3.cpp b/rehlds/engine/sv_steam3.cpp index 5ce2960..64d738a 100644 --- a/rehlds/engine/sv_steam3.cpp +++ b/rehlds/engine/sv_steam3.cpp @@ -690,9 +690,8 @@ qboolean Steam_NotifyClientConnect(client_t *cl, const void *pvSteam2Key, unsign .callChain(Steam_NotifyClientConnect_api, FALSE, GetRehldsApiClient(cl), pvSteam2Key, ucbSteam2Key); } - /* ../engine/sv_steam3.cpp:914 */ -qboolean EXT_FUNC Steam_NotifyClientConnect_internal(client_t *cl, const void *pvSteam2Key, unsigned int ucbSteam2Key) +qboolean Steam_NotifyClientConnect_internal(client_t *cl, const void *pvSteam2Key, unsigned int ucbSteam2Key) { if (Steam3Server()) { diff --git a/rehlds/rehlds/rehlds_api_impl.cpp b/rehlds/rehlds/rehlds_api_impl.cpp index 5a6b070..7b56673 100644 --- a/rehlds/rehlds/rehlds_api_impl.cpp +++ b/rehlds/rehlds/rehlds_api_impl.cpp @@ -65,6 +65,22 @@ DLL_FUNCTIONS* EXT_FUNC GetEntityInterface_api() { return &gEntityInterface; } +void EXT_FUNC MSG_StartBitWriting_api(sizebuf_t *buf) { + MSG_StartBitWriting(buf); +} + +void EXT_FUNC MSG_WriteBits_api(uint32 data, int numbits) { + MSG_WriteBits(data, numbits); +} + +void EXT_FUNC MSG_WriteBitVec3Coord_api(const vec3_t fa) { + MSG_WriteBitVec3Coord(fa); +} + +void EXT_FUNC MSG_EndBitWriting_api(sizebuf_t *buf) { + MSG_EndBitWriting(buf); +} + CRehldsServerStatic g_RehldsServerStatic; CRehldsServerData g_RehldsServerData; CRehldsHookchains g_RehldsHookchains; @@ -95,10 +111,10 @@ RehldsFuncs_t g_RehldsApiFuncs = &GetEntityInterface_api, &EV_PlayReliableEvent_api, &SV_LookupSoundIndex, - &MSG_StartBitWriting, - &MSG_WriteBits, - &MSG_WriteBitVec3Coord, - &MSG_EndBitWriting, + &MSG_StartBitWriting_api, + &MSG_WriteBits_api, + &MSG_WriteBitVec3Coord_api, + &MSG_EndBitWriting_api, &SZ_GetSpace };