Compare commits

..
Author SHA1 Message Date
BotoX bf580a7134 reorder function calls 2019-09-02 23:15:08 +02:00
BotoX 2fdb11ef1e Fix wrong timeleft calculation 2019-09-02 19:43:39 +02:00
3 changed files with 1 additions and 16 deletions
-8
View File
@@ -36,11 +36,7 @@
#if SOURCE_ENGINE >= SE_ORANGEBOX #if SOURCE_ENGINE >= SE_ORANGEBOX
SH_DECL_HOOK1_void(ICvar, UnregisterConCommand, SH_NOATTRIB, 0, ConCommandBase *); SH_DECL_HOOK1_void(ICvar, UnregisterConCommand, SH_NOATTRIB, 0, ConCommandBase *);
#if SOURCE_ENGINE == SE_CSGO
SH_DECL_HOOK2_void(ICvar, RegisterConCommand, SH_NOATTRIB, 0, ConCommandBase *, bool);
#else
SH_DECL_HOOK1_void(ICvar, RegisterConCommand, SH_NOATTRIB, 0, ConCommandBase *); SH_DECL_HOOK1_void(ICvar, RegisterConCommand, SH_NOATTRIB, 0, ConCommandBase *);
#endif
#else #else
SH_DECL_HOOK1_void(ICvar, RegisterConCommandBase, SH_NOATTRIB, 0, ConCommandBase *); SH_DECL_HOOK1_void(ICvar, RegisterConCommandBase, SH_NOATTRIB, 0, ConCommandBase *);
#endif #endif
@@ -82,11 +78,7 @@ public:
#endif #endif
} }
#if SOURCE_ENGINE == SE_CSGO
void LinkConCommandBase(ConCommandBase *pBase, bool unknown)
#else
void LinkConCommandBase(ConCommandBase *pBase) void LinkConCommandBase(ConCommandBase *pBase)
#endif
{ {
IConCommandLinkListener *listener = IConCommandLinkListener::head; IConCommandLinkListener *listener = IConCommandLinkListener::head;
while (listener) while (listener)
-4
View File
@@ -53,10 +53,6 @@ static CBaseEntity *FindEntityByNetClass(int start, const char *classname)
if (network == NULL) if (network == NULL)
continue; continue;
IHandleEntity *pHandleEnt = network->GetEntityHandle();
if (pHandleEnt == NULL)
continue;
ServerClass *sClass = network->GetServerClass(); ServerClass *sClass = network->GetServerClass();
const char *name = sClass->GetName(); const char *name = sClass->GetName();
+1 -4
View File
@@ -615,10 +615,7 @@ native int FormatNativeString(int out_param,
* *
* @param data Data passed to the RequestFrame native. * @param data Data passed to the RequestFrame native.
*/ */
typeset RequestFrameCallback { typedef RequestFrameCallback = function void (any data);
function void ();
function void (any data);
}
/** /**
* Creates a single use Next Frame hook. * Creates a single use Next Frame hook.