[Scummvm-cvs-logs] SF.net SVN: scummvm: [26788] scummvm/trunk/engines/saga/actor.h
h00ligan at users.sourceforge.net
h00ligan at users.sourceforge.net
Tue May 8 18:09:47 CEST 2007
Revision: 26788
http://scummvm.svn.sourceforge.net/scummvm/?rev=26788&view=rev
Author: h00ligan
Date: 2007-05-08 09:09:47 -0700 (Tue, 08 May 2007)
Log Message:
-----------
small pathfind speedup: validate coords only with debug definition
Modified Paths:
--------------
scummvm/trunk/engines/saga/actor.h
Modified: scummvm/trunk/engines/saga/actor.h
===================================================================
--- scummvm/trunk/engines/saga/actor.h 2007-05-08 14:48:46 UTC (rev 26787)
+++ scummvm/trunk/engines/saga/actor.h 2007-05-08 16:09:47 UTC (rev 26788)
@@ -622,15 +622,19 @@
(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);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list