Bug #247

Fix converting floating-point values to int

Added by IR4T4 over 6 years ago. Updated over 6 years ago.

Status:New% Done:

0%

Priority:NormalSpent time:-
Assignee:IR4T4
Category:General
Target version:ALL
OS: Arch:

Description

There are 'some’ locations in the code where truncating conversion is used instead of rounding conversion see http://www.cs.tut.fi/~jkorpela/round.html

Inspect ...

Associated revisions

Revision 51da121f
Added by IR4T4 over 6 years ago

generic: macro to convert floating-point values to integer refs #247

Revision cea4fc37
Added by IR4T4 over 6 years ago

game: more precise rounding conversion for 'damage’ of G_Damage()
function calls refs #247

Revision 3d89c2d5
Added by IR4T4 over 6 years ago

generic: build fix for non *nix systems refs #247

Revision 8447461b
Added by IR4T4 over 6 years ago

mod: using rounding conversion in BG_GetSkyHeightAtPoint,
BG_GetSkyGroundHeightAtPoint and BG_GetGroundHeightAtPoint refs #247
refs #245

Revision 979ced69
Added by IR4T4 over 6 years ago

renderer: rounding conversion for lod refs #247

Revision b578ef28
Added by IR4T4 over 6 years ago

renderer: rounding conversion for lod (II) refs #247

History

#1 Updated by Radegast over 6 years ago

Build fails after commit 51da121f, because function error() is undefined. There was a talk on the IRC channel that we should not use this macro.

#2 Updated by Radegast over 6 years ago

  • Assignee set to IR4T4
  • Target version changed from 2.71rc2 to ALL

Also available in: Atom PDF