diff options
-rw-r--r-- | engines/saga/actor.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/saga/actor.h b/engines/saga/actor.h index 2c247d7bba..549265a72c 100644 --- a/engines/saga/actor.h +++ b/engines/saga/actor.h @@ -622,15 +622,19 @@ private: (testPoint.y < 0) || (testPoint.y >= _yCellCount)); } void setPathCell(const Point &testPoint, int8 value) { +#ifdef ACTOR_DEBUG if (!validPathCellPoint(testPoint)) { error("Actor::setPathCell wrong point"); } +#endif _pathCell[testPoint.x + testPoint.y * _xCellCount] = value; } int8 getPathCell(const Point &testPoint) { +#ifdef ACTOR_DEBUG if (!validPathCellPoint(testPoint)) { error("Actor::getPathCell wrong point"); } +#endif return _pathCell[testPoint.x + testPoint.y * _xCellCount]; } bool scanPathLine(const Point &point1, const Point &point2); |