aboutsummaryrefslogtreecommitdiff
path: root/saga/actor.h
diff options
context:
space:
mode:
authorAndrew Kurushin2005-01-06 23:02:53 +0000
committerAndrew Kurushin2005-01-06 23:02:53 +0000
commit37a858d6f5046fb6c0e2be347b37c8f1d61fe1fe (patch)
treee61af50398783b172484faf2b633a8015e6fba96 /saga/actor.h
parentfa3d618fae78501272a62c02fd754a4cbecb84d3 (diff)
downloadscummvm-rg350-37a858d6f5046fb6c0e2be347b37c8f1d61fe1fe.tar.gz
scummvm-rg350-37a858d6f5046fb6c0e2be347b37c8f1d61fe1fe.tar.bz2
scummvm-rg350-37a858d6f5046fb6c0e2be347b37c8f1d61fe1fe.zip
- compiles debug path displaying only if ACTOR_DEBUG defined
- removed some temporary variable svn-id: r16469
Diffstat (limited to 'saga/actor.h')
-rw-r--r--saga/actor.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/saga/actor.h b/saga/actor.h
index 97b1625100..0b7a114411 100644
--- a/saga/actor.h
+++ b/saga/actor.h
@@ -32,6 +32,8 @@
namespace Saga {
+//#define ACTOR_DEBUG
+
#define ACTOR_BARRIERS_MAX 16
#define ACTOR_MAX_STEPS_COUNT 32
@@ -385,6 +387,7 @@ private:
_pathNodeList[_pathNodeListIndex].point = point;
}
public:
+#ifdef ACTOR_DEBUG
//path debug - use with care
struct DebugPoint {
Point point;
@@ -401,6 +404,7 @@ public:
_debugPoints[_debugPointsCount].color = color;
_debugPoints[_debugPointsCount++].point = point;
}
+#endif
};
inline int16 quickDistance(const Point &point1, const Point &point2) {