aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/cine/pal.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/cine/pal.cpp b/engines/cine/pal.cpp
index 34b196d5c7..2109c15389 100644
--- a/engines/cine/pal.cpp
+++ b/engines/cine/pal.cpp
@@ -141,9 +141,10 @@ int power(int base, int power) {
// 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--)