aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/graphics/frameout.cpp
diff options
context:
space:
mode:
authorFilippos Karapetis2018-08-25 12:04:26 +0300
committerFilippos Karapetis2018-08-25 12:39:12 +0300
commit66cbaeefe20967348bb5306272f937dba0281021 (patch)
treed7edaa68dbd2159273726dbf774dfa018d7ca884 /engines/sci/graphics/frameout.cpp
parent82e8bc43e60ce5908097d62be1b2fbb59c4679e8 (diff)
downloadscummvm-rg350-66cbaeefe20967348bb5306272f937dba0281021.tar.gz
scummvm-rg350-66cbaeefe20967348bb5306272f937dba0281021.tar.bz2
scummvm-rg350-66cbaeefe20967348bb5306272f937dba0281021.zip
SCI32: Adapt the pathfinding debug code to work woth SCI32 games
Diffstat (limited to 'engines/sci/graphics/frameout.cpp')
-rw-r--r--engines/sci/graphics/frameout.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/engines/sci/graphics/frameout.cpp b/engines/sci/graphics/frameout.cpp
index 434c5a0fec..505e2063f3 100644
--- a/engines/sci/graphics/frameout.cpp
+++ b/engines/sci/graphics/frameout.cpp
@@ -1354,6 +1354,16 @@ void GfxFrameout::remapMarkRedraw() {
#pragma mark -
#pragma mark Debugging
+Plane *GfxFrameout::getTopVisiblePlane() {
+ for (PlaneList::const_iterator it = _visiblePlanes.begin(); it != _visiblePlanes.end(); ++it) {
+ Plane *p = *it;
+ if (p->_type == kPlaneTypePicture)
+ return p;
+ }
+
+ return nullptr;
+}
+
void GfxFrameout::printPlaneListInternal(Console *con, const PlaneList &planeList) const {
for (PlaneList::const_iterator it = planeList.begin(); it != planeList.end(); ++it) {
Plane *p = *it;