Update of /cvsroot/wpdev/wolfpack
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5641
Modified Files:
walking.cpp
Log Message:
narrows item search criteria for mayWalk() item iterator to just the tile we are walking onto. should save alot of cpu for just walking. previously was using item iterator default of 18 tiles. I dunno if there is a good reason to iterate on items 18 tiles away when walking.
Index: walking.cpp
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/walking.cpp,v
retrieving revision 1.148
retrieving revision 1.149
diff -C2 -d -r1.148 -r1.149
*** walking.cpp 9 Sep 2004 02:36:24 -0000 1.148
--- walking.cpp 19 Sep 2004 18:41:40 -0000 1.149
***************
*** 201,205 ****
}
! RegionIterator4Items iIter( pos );
for ( iIter.Begin(); !iIter.atEnd(); iIter++ )
{
--- 201,205 ----
}
! RegionIterator4Items iIter( pos, 0 );
for ( iIter.Begin(); !iIter.atEnd(); iIter++ )
{
|