aboutsummaryrefslogtreecommitdiff
path: root/actor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'actor.cpp')
-rw-r--r--actor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/actor.cpp b/actor.cpp
index 4df88b14ef..7d499c12c7 100644
--- a/actor.cpp
+++ b/actor.cpp
@@ -1089,8 +1089,8 @@ void Scumm::remapActor(Actor *a, int r_fact, int g_fact, int b_fact, int thresho
// allow remap of generic palette entry?
if (!a->unk1 || akpl_color>=16) {
if (r_fact!=256) r = (r*r_fact) >> 8;
- if (r_fact!=256) g = (g*g_fact) >> 8;
- if (r_fact!=256) b = (b*b_fact) >> 8;
+ if (g_fact!=256) g = (g*g_fact) >> 8;
+ if (b_fact!=256) b = (b*b_fact) >> 8;
a->palette[i]=remapPaletteColor(r,g,b,threshold);
}
}