aboutsummaryrefslogtreecommitdiff
path: root/engines/dreamweb/sprite.cpp
diff options
context:
space:
mode:
authorWillem Jan Palenstijn2011-12-23 22:51:32 +0100
committerWillem Jan Palenstijn2011-12-23 23:46:38 +0100
commit109acaab3cb9b75937e9521b582476f544ebfe71 (patch)
tree53cfaf24c3c2bca5518a163a6bba0d706dfddc92 /engines/dreamweb/sprite.cpp
parent1749182e98ed410cd62e22185943696b7e30432a (diff)
downloadscummvm-rg350-109acaab3cb9b75937e9521b582476f544ebfe71.tar.gz
scummvm-rg350-109acaab3cb9b75937e9521b582476f544ebfe71.tar.bz2
scummvm-rg350-109acaab3cb9b75937e9521b582476f544ebfe71.zip
DREAMWEB: Move mapflags out of buffers
Diffstat (limited to 'engines/dreamweb/sprite.cpp')
-rw-r--r--engines/dreamweb/sprite.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/dreamweb/sprite.cpp b/engines/dreamweb/sprite.cpp
index cc6b09fd68..17d3ccd765 100644
--- a/engines/dreamweb/sprite.cpp
+++ b/engines/dreamweb/sprite.cpp
@@ -552,7 +552,7 @@ void DreamGenContext::checkOne() {
void DreamBase::checkOne(uint8 x, uint8 y, uint8 *flag, uint8 *flagEx, uint8 *type, uint8 *flagX, uint8 *flagY) {
*flagX = x / 16;
*flagY = y / 16;
- const uint8 *tileData = getSegment(data.word(kBuffers)).ptr(kMapflags + (*flagY * 11 + *flagX) * 3, 3);
+ const uint8 *tileData = &_mapFlags[(*flagY * 11 + *flagX) * 3];
*flag = tileData[0];
*flagEx = tileData[1];
*type = tileData[2];