[Scummvm-cvs-logs] SF.net SVN: scummvm: [29614] scummvm/trunk/engines/scumm/he/logic_he.cpp
sev at users.sourceforge.net
sev at users.sourceforge.net
Thu Nov 22 22:24:50 CET 2007
Revision: 29614
http://scummvm.svn.sourceforge.net/scummvm/?rev=29614&view=rev
Author: sev
Date: 2007-11-22 13:24:50 -0800 (Thu, 22 Nov 2007)
Log Message:
-----------
Fix bug with rotating shapes in funshop games
Modified Paths:
--------------
scummvm/trunk/engines/scumm/he/logic_he.cpp
Modified: scummvm/trunk/engines/scumm/he/logic_he.cpp
===================================================================
--- scummvm/trunk/engines/scumm/he/logic_he.cpp 2007-11-22 21:19:44 UTC (rev 29613)
+++ scummvm/trunk/engines/scumm/he/logic_he.cpp 2007-11-22 21:24:50 UTC (rev 29614)
@@ -468,19 +468,19 @@
data[i + 1] = sin(at + a1) * sq;
}
- int minx = 2;
- int miny = 3;
+ double minx = data[0];
+ double miny = data[1];
for (i = 0; i <= 6; i += 2) {
- if (data[i] < data[minx])
- minx = i;
- if (data[i + 1] < data[miny])
- miny = i + 1;
+ if (data[i] < minx)
+ minx = data[i];
+ if (data[i + 1] < miny)
+ miny = data[i + 1];
}
for (i = 0; i <= 6; i += 2) {
- data[i] -= data[minx];
- data[i + 1] -= data[miny];
+ data[i] -= minx;
+ data[i + 1] -= miny;
putInArray(args[0], 0, 519 + i, scumm_round(data[i]));
putInArray(args[0], 0, 519 + i + 1, scumm_round(data[i + 1]));
@@ -496,8 +496,8 @@
data[i - 520 + 1] = getFromArray(args[0], 0, i);
}
- args1 = args[1] / 100.0 + 1;
- args2 = args[2] / 100.0 + 1;
+ args1 = (double)args[1] * 0.01 + 1;
+ args2 = (double)args[2] * 0.01 + 1;
for (i = 0; i < 4; i++) {
data[2 * i] *= args1;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list