added amb1685 - GetTickInterval()
--HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%402158
This commit is contained in:
@@ -325,6 +325,11 @@ static cell_t smn_IsServerProcessing(IPluginContext *pContext, const cell_t *par
|
||||
return (gpGlobals->frametime > 0.0f) ? 1 : 0;
|
||||
}
|
||||
|
||||
static cell_t smn_GetTickInterval(IPluginContext *pContext, const cell_t *params)
|
||||
{
|
||||
return sp_ftoc(gpGlobals->interval_per_tick);
|
||||
}
|
||||
|
||||
REGISTER_NATIVES(timernatives)
|
||||
{
|
||||
{"CreateTimer", smn_CreateTimer},
|
||||
@@ -335,5 +340,7 @@ REGISTER_NATIVES(timernatives)
|
||||
{"GetMapTimeLimit", smn_GetMapTimeLimit},
|
||||
{"ExtendMapTimeLimit", smn_ExtendMapTimeLimit},
|
||||
{"IsServerProcessing", smn_IsServerProcessing},
|
||||
{"GetTickInterval", smn_GetTickInterval},
|
||||
{NULL, NULL}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user