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

Marcus Comstedt marcus at mc.pp.se
Sun Aug 23 10:38:14 CEST 2015


"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