removed redundant float native
--HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40543
This commit is contained in:
parent
78eb5b7747
commit
38532ccdad
@ -163,19 +163,6 @@ static cell_t sm_FloatRound(IPluginContext *pCtx, const cell_t *params)
|
|||||||
return static_cast<int>(val);
|
return static_cast<int>(val);
|
||||||
}
|
}
|
||||||
|
|
||||||
static cell_t sm_FloatStr(IPluginContext *pCtx, const cell_t *params)
|
|
||||||
{
|
|
||||||
char *str;
|
|
||||||
|
|
||||||
pCtx->LocalToString(params[1], &str);
|
|
||||||
if (!strlen(str))
|
|
||||||
{
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
return sp_ftoc((float)atof(str));
|
|
||||||
}
|
|
||||||
|
|
||||||
static cell_t sm_FloatFraction(IPluginContext *pCtx, const cell_t *params)
|
static cell_t sm_FloatFraction(IPluginContext *pCtx, const cell_t *params)
|
||||||
{
|
{
|
||||||
float val = sp_ctof(params[1]);
|
float val = sp_ctof(params[1]);
|
||||||
@ -244,7 +231,6 @@ static cell_t sm_ArcTangent2(IPluginContext *pCtx, const cell_t *params)
|
|||||||
REGISTER_NATIVES(floatnatives)
|
REGISTER_NATIVES(floatnatives)
|
||||||
{
|
{
|
||||||
{"float", sm_float},
|
{"float", sm_float},
|
||||||
{"FloatStr", sm_FloatStr},
|
|
||||||
{"FloatMul", sm_FloatMul},
|
{"FloatMul", sm_FloatMul},
|
||||||
{"FloatDiv", sm_FloatDiv},
|
{"FloatDiv", sm_FloatDiv},
|
||||||
{"FloatAdd", sm_FloatAdd},
|
{"FloatAdd", sm_FloatAdd},
|
||||||
|
@ -41,14 +41,6 @@ enum floatround_method
|
|||||||
*/
|
*/
|
||||||
native Float:float(value);
|
native Float:float(value);
|
||||||
|
|
||||||
/**
|
|
||||||
* Converts a string into a floating point value.
|
|
||||||
*
|
|
||||||
* @param str String to convert.
|
|
||||||
* @return Converted floating point number.
|
|
||||||
*/
|
|
||||||
native Float:FloatStr(const String:str[]);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Multiplies two floats together.
|
* Multiplies two floats together.
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user