[Scummvm-cvs-logs] CVS: scummvm/scumm logic_he.cpp,2.16,2.17
Eugene Sandulenko
sev at users.sourceforge.net
Tue May 17 16:28:53 CEST 2005
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/scumm logic_he.cpp,2.15,2.16 logic_he.h,2.10,2.11
- Next message: [Scummvm-cvs-logs] CVS: tools extract_mm_c64.c,NONE,1.1 extract_zak_c64.c,NONE,1.1 Makefile,1.51,1.52
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21764
Modified Files:
logic_he.cpp
Log Message:
Remove debug output. Some more PI fixes
Index: logic_he.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/logic_he.cpp,v
retrieving revision 2.16
retrieving revision 2.17
diff -u -d -r2.16 -r2.17
--- logic_he.cpp 17 May 2005 23:21:20 -0000 2.16
+++ logic_he.cpp 17 May 2005 23:27:50 -0000 2.17
@@ -143,8 +143,8 @@
return res;
}
-#define RAD2DEG 5.729577951308239e1
-#define DEG2RAD 1.745329251994328e-2
+#define RAD2DEG (180 / PI)
+#define DEG2RAD (PI / 180)
int32 LogicHErace::op_1003(int32 *args) {
int value = args[2] ? args[2] : 1;
@@ -401,15 +401,13 @@
for (int i = 0; i <= 6; i += 2) {
data[i] = getFromArray(args[0], 0, 519 + i);
data[i + 1] = getFromArray(args[0], 0, 519 + i + 1);
-
- printf("data[%d] = %lf\ndata[%d] = %lf\n", i, data[i], i + 1, data[i + 1]);
}
int s = checkShape((int32)data[0], (int32)data[1], (int32)data[4], (int32)data[5],
(int32)data[2], (int32)data[3], (int32)data[6], (int32)data[7], &x, &y);
if (s != 1) {
- printf("LogicHEfunshop::op_1004: Your shape has defied the laws of physics\n");
- return;
+ error("LogicHEfunshop::op_1004: Your shape has defied the laws of physics\n");
+ return;
}
for (int i = 0; i <= 6; i += 2) {
@@ -417,7 +415,7 @@
data[i + 1] -= (double)y;
}
- double a1 = (double)args[1] * 1.745328888888889e-2;
+ double a1 = (double)args[1] * PI / 180;
for (int i = 0; i <= 6; i += 2) {
at = atan2(data[i + 1], data[i]);
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/scumm logic_he.cpp,2.15,2.16 logic_he.h,2.10,2.11
- Next message: [Scummvm-cvs-logs] CVS: tools extract_mm_c64.c,NONE,1.1 extract_zak_c64.c,NONE,1.1 Makefile,1.51,1.52
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Scummvm-git-logs
mailing list