- replaced all calls to sqrtf with sqrt. Also changed P_RadiusAttack to use doubles for all floating point calculations.
SVN r2989 (trunk)
This commit is contained in:
parent
dff4553663
commit
7dd8a0fce9
5 changed files with 25 additions and 25 deletions
|
|
@ -1533,7 +1533,7 @@ void AM_drawGrid (const AMColor &color)
|
|||
|
||||
// [RH] Calculate a minimum for how long the grid lines should be so that
|
||||
// they cover the screen at any rotation.
|
||||
minlen = (fixed_t)sqrtf ((float)m_w*(float)m_w + (float)m_h*(float)m_h);
|
||||
minlen = (fixed_t)sqrt ((double)m_w*(double)m_w + (double)m_h*(double)m_h);
|
||||
extx = (minlen - m_w) / 2;
|
||||
exty = (minlen - m_h) / 2;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue