aboutsummaryrefslogtreecommitdiff
path: root/engines/agi/picture.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2007-09-20 21:55:15 +0000
committerEugene Sandulenko2007-09-20 21:55:15 +0000
commit341b8f1e67610d7843a75f37fe915f9354fc1188 (patch)
treec95c521c19c4069d9d97cf31d084611af3c849e3 /engines/agi/picture.cpp
parent78cd63c491e55ddf260f9249522a2109868ef4ce (diff)
downloadscummvm-rg350-341b8f1e67610d7843a75f37fe915f9354fc1188.tar.gz
scummvm-rg350-341b8f1e67610d7843a75f37fe915f9354fc1188.tar.bz2
scummvm-rg350-341b8f1e67610d7843a75f37fe915f9354fc1188.zip
Last pieces of Troll's Tale. Only missing thing is sound
svn-id: r28992
Diffstat (limited to 'engines/agi/picture.cpp')
-rw-r--r--engines/agi/picture.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/engines/agi/picture.cpp b/engines/agi/picture.cpp
index 4a7f5f5900..42d7c88fa0 100644
--- a/engines/agi/picture.cpp
+++ b/engines/agi/picture.cpp
@@ -260,6 +260,9 @@ INLINE int PictureMgr::isOkFillHere(int x, int y) {
p = _vm->_game.sbuf16c[y * _width + x];
+ if (_flags & kPicFTrollMode)
+ return ((p & 0x0f) != 11 && (p & 0x0f) != _scrColor);
+
if (!_priOn && _scrOn && _scrColor != 15)
return (p & 0x0f) == 15;
@@ -420,10 +423,6 @@ void PictureMgr::yCorner(bool skipOtherCoords) {
void PictureMgr::fill() {
int x1, y1;
- if (_pictureVersion == AGIPIC_V15 && 0)
- if (_scrColor == 0xf && !(_flags & kPicFTrollMode))
- return;
-
while ((x1 = nextByte()) < _minCommand && (y1 = nextByte()) < _minCommand)
agiFill(x1, y1);