[Scummvm-cvs-logs] scummvm master -> 68d0602b0dc49f0ca1c3561613dc868ef5a94f93
clone2727
clone2727 at gmail.com
Tue Apr 26 23:34:23 CEST 2011
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
68d0602b0d SCUMM: Avoid long double usage
Commit: 68d0602b0dc49f0ca1c3561613dc868ef5a94f93
https://github.com/scummvm/scummvm/commit/68d0602b0dc49f0ca1c3561613dc868ef5a94f93
Author: Matthew Hoops (clone2727 at gmail.com)
Date: 2011-04-26T14:32:34-07:00
Commit Message:
SCUMM: Avoid long double usage
Changed paths:
engines/scumm/he/logic_he.cpp
diff --git a/engines/scumm/he/logic_he.cpp b/engines/scumm/he/logic_he.cpp
index 3aa1e04..0f2d232 100644
--- a/engines/scumm/he/logic_he.cpp
+++ b/engines/scumm/he/logic_he.cpp
@@ -971,21 +971,21 @@ int LogicHEsoccer::op_1007(int32 *args) {
// TODO: Used when the HE logo is shown
// This initializes the _userDataD fields that are used in op_1006/op_1011
- long double v14 = (long double)args[0] * 0.01;
+ double v14 = (double)args[0] * 0.01;
_userData[6873] = 0;
- long double v13 = (long double)args[2] * 0.01;
+ double v13 = (double)args[2] * 0.01;
_userDataD[524] = v14;
- long double v12 = atan2(v13, v14);
+ double v12 = atan2(v13, v14);
_userDataD[520] = v12;
- long double v15 = atan2(v13 - (long double)args[4] * 0.01, (long double)args[3] * 0.01);
- long double v19 = v15 * 2.0;
- long double v17 = atan2(v13 - (long double)args[4] * 0.01, v14);
+ double v15 = atan2(v13 - (double)args[4] * 0.01, (double)args[3] * 0.01);
+ double v19 = v15 * 2.0;
+ double v17 = atan2(v13 - (double)args[4] * 0.01, v14);
_userDataD[519] = v19;
_userDataD[521] = v17;
_userDataD[525] = (v17 - v12) * 2.0;
- _userDataD[527] = (long double)args[5];
- _userDataD[526] = (long double)args[6];
- _userDataD[528] = (long double)args[7];
+ _userDataD[527] = (double)args[5];
+ _userDataD[526] = (double)args[6];
+ _userDataD[528] = (double)args[7];
_userDataD[522] = _userDataD[526] / _userDataD[525];
_userDataD[523] = _userDataD[527] / _userDataD[519];
_userDataD[518] = v13;
More information about the Scummvm-git-logs
mailing list