From 942c3acd8e3ae4480864e28b4f998bb5987e1a37 Mon Sep 17 00:00:00 2001 From: Borja Ferrer Date: Wed, 23 May 2007 20:24:28 +0000 Subject: [PATCH] spelling mistake --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40857 --- core/smn_float.cpp | 4 ++-- plugins/include/float.inc | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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.