changeset 2948 | 3f21a9dc93d0 |
parent 2933 | 02af54eb7e1e |
child 2955 | fb361d137524 |
--- a/hedgewars/uFloat.pas Sat Mar 06 10:54:24 2010 +0000 +++ b/hedgewars/uFloat.pas Sat Mar 06 10:59:20 2010 +0000 @@ -291,9 +291,9 @@ begin hwSqr.isNegative:= false; hwSqr.QWordValue:= - ((QWord(t.Round) * t.Round) shl 32) - + QWord(t.Round) * t.Frac * 2 - + ((QWord(t.Frac) * t.Frac) shr 32); + ((QWord(t.Round) * t.Round) shl 32) + + QWord(t.Round) * t.Frac * 2 + + ((QWord(t.Frac) * t.Frac) shr 32); end; function hwSqrt(const t: hwFloat): hwFloat;