/[projectaxis]/projectaxis/projectAxis/src/map/pathfinding/mapsearch_pod.cpp
ViewVC logotype

Diff of /projectaxis/projectAxis/src/map/pathfinding/mapsearch_pod.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by leiavoia, Fri Jul 25 21:18:38 2003 UTC revision 1.4 by leiavoia, Fri Aug 8 02:09:39 2003 UTC
# Line 48  bool MapSearchNode_Pod::GetSuccessors( A Line 48  bool MapSearchNode_Pod::GetSuccessors( A
48    
49                  if( themap->IsValid(checker.x, checker.y) == 1 ) { // is valid                  if( themap->IsValid(checker.x, checker.y) == 1 ) { // is valid
50                          temp = themap->GetOccu(checker.x, checker.y); // get occupant if any                          temp = themap->GetOccu(checker.x, checker.y); // get occupant if any
51                          if (    (themap->GetObst(checker.x, checker.y) != 1)  && // is not a blocked tile                          if (    (themap->GetObst(checker.x, checker.y) != OBST_BLOCK)  && // is not a blocked tile
52                                  !((parent_x == checker.x) && (parent_y == checker.y)  ) // isn't where we just came from                                  !((parent_x == checker.x) && (parent_y == checker.y)  ) // isn't where we just came from
53                                  ) {                                  ) {
54                                  if (temp == NULL || checker.IsGoal(  *(astarsearch->GetSolutionEnd())  ) == 1) {  // if not already occupied -OR- it's the goal state.                                  if (temp == NULL || checker.IsGoal(  *(astarsearch->GetSolutionEnd())  ) == 1) {  // if not already occupied -OR- it's the goal state.

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26