diff options
Diffstat (limited to 'engines/toltecs/segmap.h')
-rw-r--r-- | engines/toltecs/segmap.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/toltecs/segmap.h b/engines/toltecs/segmap.h index 77ab247c72..b860efb2ce 100644 --- a/engines/toltecs/segmap.h +++ b/engines/toltecs/segmap.h @@ -92,6 +92,9 @@ public: // for debugging purposes int16 height, width; byte id; byte a, b, c; + inline bool isPointInside(int16 px, int16 py) { + return py >= y && py <= y + height && px >= x && px <= x + width; + } }; struct PathPoint { |