[Scummvm-devel] round(float) in riven_external.cpp

Matthew Hoops clone2727 at gmail.com
Tue Aug 18 21:36:00 CEST 2015


It's C99, which I had forgotten. I assume your libc is from the stone age.

It can just be replaced by floor(x + 0.5) in this case.

Matt
On Aug 18, 2015 2:31 PM, "Федор" <fedor_qd at mail.ru> wrote:

> This function called from libc? I ask this because Symbian libc hasn't
> that function.
> I search code and found in math_util.cpp in wintermute engine this
> function float MathUtil::round(float val). They have same behaviour?
>
>
> Fedor Strizhnev
> Федор Стрижнёв.
>
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> Scummvm-devel mailing list
> Scummvm-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/scummvm-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.scummvm.org/pipermail/scummvm-devel/attachments/20150818/8a5cf660/attachment.html>


More information about the Scummvm-devel mailing list