aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTravis Howell2004-06-26 01:02:52 +0000
committerTravis Howell2004-06-26 01:02:52 +0000
commitdfa7af5b5d7935e2450ba6bdb49461229facd1c3 (patch)
treeb9fcb2225ec57a7d03b8c18469e1980fcddfbfc0
parent6b722ff11bcaa4622cf662245819993316eb8c5d (diff)
downloadscummvm-rg350-dfa7af5b5d7935e2450ba6bdb49461229facd1c3.tar.gz
scummvm-rg350-dfa7af5b5d7935e2450ba6bdb49461229facd1c3.tar.bz2
scummvm-rg350-dfa7af5b5d7935e2450ba6bdb49461229facd1c3.zip
Fix transparency for akos codec 16 in HE games.
svn-id: r14059
-rw-r--r--TODO1
-rw-r--r--scumm/akos.cpp7
2 files changed, 1 insertions, 7 deletions
diff --git a/TODO b/TODO
index 0a3ababf38..604e680f4a 100644
--- a/TODO
+++ b/TODO
@@ -290,7 +290,6 @@ SCUMM
- Document and fix AKOS differences in Humongous Entertainment games
- Support various newer Humongous Entertainment games
* Humongous entertainment >= v7 titles:
- - Determine when AKOS codec16 should use 0 or 255 for transparency colour
- Fix palette for AKOS (seems to be codec 1 only?)
- Fix inventory flashing at times
- Add support for PCM music
diff --git a/scumm/akos.cpp b/scumm/akos.cpp
index d88d348e69..7a3104c2c5 100644
--- a/scumm/akos.cpp
+++ b/scumm/akos.cpp
@@ -934,12 +934,7 @@ byte AkosRenderer::codec16(int xmoveCur, int ymoveCur) {
Common::Rect clip;
int32 maxw, maxh;
int32 skip_x, skip_y, cur_x, cur_y;
- byte transparency;
- //FIXME There should be better method to determine transparency in HE games
- if (_vm->_features & GF_HUMONGOUS) {
- transparency = (_vm->_gameId == GID_FBEAR) ? 5 : 0;
- } else
- transparency = 255;
+ byte transparency = (_vm->_features & GF_HUMONGOUS) ? palette[0] : 255;
if (_actorHitMode) {
warning("codec16: _actorHitMode not yet implemented");