aboutsummaryrefslogtreecommitdiff
path: root/engines/agi/picture.cpp
diff options
context:
space:
mode:
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);