[Scummvm-cvs-logs] SF.net SVN: scummvm:[55195] scummvm/trunk/engines/cine/pal.cpp
tdhs at users.sourceforge.net
tdhs at users.sourceforge.net
Mon Jan 10 01:35:45 CET 2011
Revision: 55195
http://scummvm.svn.sourceforge.net/scummvm/?rev=55195&view=rev
Author: tdhs
Date: 2011-01-10 00:35:45 +0000 (Mon, 10 Jan 2011)
Log Message:
-----------
CINE: Modified Palette::rotateRight() function to cope with all positive values of rotation.
This fixes the assert in Operation Stealth in Scene 7 when the Russians mount the Jetskis.
Modified Paths:
--------------
scummvm/trunk/engines/cine/pal.cpp
Modified: scummvm/trunk/engines/cine/pal.cpp
===================================================================
--- scummvm/trunk/engines/cine/pal.cpp 2011-01-09 22:54:04 UTC (rev 55194)
+++ scummvm/trunk/engines/cine/pal.cpp 2011-01-10 00:35:45 UTC (rev 55195)
@@ -141,9 +141,10 @@
// a.k.a. palRotate
Palette &Palette::rotateRight(byte firstIndex, byte lastIndex, signed rotationAmount) {
- assert(rotationAmount == 0 || rotationAmount == 1);
+ debug(1, "Palette::rotateRight(firstIndex: %d, lastIndex: %d, rotationAmount:%d)", firstIndex, lastIndex, rotationAmount);
+ assert(rotationAmount >= 0);
- if (rotationAmount == 1) {
+ for (int j = 0; j < rotationAmount; j++) {
const Color lastColor = _colors[lastIndex];
for (int i = lastIndex; i > firstIndex; i--)
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