diff --git a/l4dtoolz.cpp b/l4dtoolz.cpp index ba883d9..74a5e53 100644 --- a/l4dtoolz.cpp +++ b/l4dtoolz.cpp @@ -98,16 +98,16 @@ void l4dtoolz::ServerActivate(edict_t *, int, int){ if(slots>=0) write_signature(rules_max_ptr, max_player_new); } -// Linux: float GetTickInterval(void *); -float GetTickInterval(){ +// Linux: static float GetTickInterval(void *); +static float GetTickInterval(){ static float tickinv = 1.0/tickrate; return tickinv; } #ifdef WIN32 -int PreAuth(const void *, int, uint64 steamID){ +static int PreAuth(const void *, int, uint64 steamID){ #else -int PreAuth(void *, const void *, int, uint64 steamID){ +static int PreAuth(void *, const void *, int, uint64 steamID){ #endif if(!steamID){ Msg("[L4DToolZ] invalid steamID.\n"); @@ -190,8 +190,8 @@ void l4dtoolz::OnAntiSharing(IConVar *var, const char *pOldValue, float flOldVal } ConVar sv_anti_sharing("sv_anti_sharing", "0", 0, "No family sharing", true, 0, true, 1, l4dtoolz::OnAntiSharing); -// Linux: void ReplyReservationRequest(void *, void *, void *); -void ReplyReservationRequest(void *, void *){ +// Linux: static void ReplyReservationRequest(void *, void *, void *); +static void ReplyReservationRequest(void *, void *){ return; } diff --git a/l4dtoolz.h b/l4dtoolz.h index 0172718..51f3171 100644 --- a/l4dtoolz.h +++ b/l4dtoolz.h @@ -4,8 +4,9 @@ #include "signature.h" +#define BINMSIZE 0x1400000 // 20M #define CHKPTR(P, V) (P && !((uint)(P)&V)) -#define CMPPTR(P, V, C) (CHKPTR(P, V) && !((uint)P>>24^(uint)C>>24)) +#define CMPPTR(P, V, C) (CHKPTR(P, V) && abs((int)P-(int)C)GetInt(); \ @@ -32,7 +33,7 @@ class l4dtoolz:public IServerPluginCallbacks{ virtual void Unload(); virtual void Pause(){ } virtual void UnPause(){ } - virtual const char *GetPluginDescription(){ return "L4DToolZ v2.2.4p1, https://github.com/lakwsh/l4dtoolz"; } + virtual const char *GetPluginDescription(){ return "L4DToolZ v2.2.4p3, https://github.com/lakwsh/l4dtoolz"; } virtual void LevelInit(char const *pMapName){ } virtual void ServerActivate(edict_t *pEdictList, int edictCount, int clientMax); virtual void GameFrame(bool simulating){ }