Update of /cvsroot/wpdev/wolfpack/ai
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10788/ai
Modified Files:
ai.cpp
Log Message:
fixes for walking
Index: ai.cpp
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/ai/ai.cpp,v
retrieving revision 1.34
retrieving revision 1.35
diff -C2 -d -r1.34 -r1.35
*** ai.cpp 2 Oct 2004 22:15:52 -0000 1.34
--- ai.cpp 2 Oct 2004 22:28:21 -0000 1.35
***************
*** 531,535 ****
}
dir = newdir;
! }
if (m_npc->direction() != dir) {
--- 531,542 ----
}
dir = newdir;
!
! newpos = Movement::instance()->calcCoordFromDir( dir, m_npc->pos() ); // Recalculate the new one
!
! // See if it's still invalid
! if ( !region->isValidSpot( newpos ) ) {
! return;
! }
! }
if (m_npc->direction() != dir) {
|