added replacement code for hypot()

svn-id: r18636
This commit is contained in:
Paweł Kołodziejski 2005-08-08 12:58:56 +00:00
parent b22caf6fdc
commit 753ff5a926

View File

@ -424,7 +424,7 @@ void LogicHEfunshop::op_1004(int32 *args) {
for (i = 0; i <= 6; i += 2) {
at = atan2(data[i + 1], data[i]);
sq = hypot(data[i + 1], data[i]);
sq = sqrt(data[i + 1] * data[i + 1] + data[i] * data[i]);
if (at <= 0)
at += 2 * PI;