[Scummvm-devel] round(float) in riven_external.cpp
Федор
fedor_qd at mail.ru
Sun Aug 23 12:46:48 CEST 2015
Fixed! Thanks you.
Fedor Strizhnev
Федор Стрижнёв.
Нядзеля, 23 жніўня 2015, 10:38 +02:00 ад "Marcus Comstedt" <marcus at mc.pp.se>:
> "Fiodar Strizhniou" <fedor_qd at mail.ru> writes:
>
> > Ok. It can be easy implemented:
> > inline float round(float val){
> > return floor(val + 0.5)
> > }
>
> Technically round() is supposed to take double and return double.
> The variant operating on float is roundf().
>
> Probably doesn't matter in this case though...
>
>
> // Marcus
>
>
>
More information about the Scummvm-devel
mailing list