From 0fb62de4b8faa711d8fe544516fed653cb409701 Mon Sep 17 00:00:00 2001 From: "Anis A. Hireche" Date: Fri, 26 Feb 2016 18:41:29 +0100 Subject: [PATCH] restored old signature of mRound as it's used from scripts. --- Engine/source/math/mConsoleFunctions.cpp | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/Engine/source/math/mConsoleFunctions.cpp b/Engine/source/math/mConsoleFunctions.cpp index 679dad3e2..1a11fe23e 100644 --- a/Engine/source/math/mConsoleFunctions.cpp +++ b/Engine/source/math/mConsoleFunctions.cpp @@ -94,18 +94,13 @@ DefineConsoleFunction( mFloor, S32, ( F32 v ),, return (S32)mFloor( v ); } - -DefineConsoleFunction( mRound, F32, ( F32 v, S32 n ), (0), +DefineConsoleFunction( mRound, S32, ( F32 v ),, "Round v to the nth decimal place or the nearest whole number by default." - "@param v Value to round\n" - "@param n Number of decimal places to round to, 0 by default\n" - "@return The rounded value as a S32." - "@ingroup Math" ) + "@param v Value to roundn" + "@return The rounded value as a S32." + "@ingroup Math" ) { - if(n <= 0) - return mRound(v); - else - return mRound(v, n); + return mRound(v); } DefineConsoleFunction( mCeil, S32, ( F32 v ),, -- 2.11.4.GIT