diff --git a/core/smn_float.cpp b/core/smn_float.cpp index 769069f2..07a0f754 100644 --- a/core/smn_float.cpp +++ b/core/smn_float.cpp @@ -128,7 +128,7 @@ static cell_t sm_SquareRoot(IPluginContext *pCtx, const cell_t *params) return sp_ftoc(sqrt(val)); } -static cell_t sm_RountToNearest(IPluginContext *pCtx, const cell_t *params) +static cell_t sm_RoundToNearest(IPluginContext *pCtx, const cell_t *params) { float val = sp_ctof(params[1]); val = (float)floor(val + 0.5f); @@ -277,7 +277,7 @@ REGISTER_NATIVES(floatnatives) {"RoundToZero", sm_RoundToZero}, {"RoundToCeil", sm_RoundToCeil}, {"RoundToFloor", sm_RoundToFloor}, - {"RountToNearest", sm_RountToNearest}, + {"RoundToNearest", sm_RoundToNearest}, {"FloatCompare", sm_FloatCompare}, {"SquareRoot", sm_SquareRoot}, {"Pow", sm_Pow}, diff --git a/plugins/include/float.inc b/plugins/include/float.inc index 714d4aeb..2aa12c09 100644 --- a/plugins/include/float.inc +++ b/plugins/include/float.inc @@ -100,7 +100,7 @@ native RoundToFloor(Float:value); * @param value Input value to be rounded. * @return Rounded value. */ -native RountToNearest(Float:value); +native RoundToNearest(Float:value); /** * Compares two floats.