comparison engine/core/pathfinder/routepather/routepathersearch.cpp @ 339:0fd74235b34d

Fixes. * The signature of InstanceTree.add/remove is adapted to the new behaviour. * Add/Remove ActionListeners from Instances should now be reentrant. * Small compile warning fixed.
author phoku@33b003aa-7bff-0310-803a-e67f0ece8222
date Mon, 24 Aug 2009 18:52:49 +0000
parents 8afb9b443f66
children 64738befdf3b
comparison
equal deleted inserted replaced
338:d266506ff4f9 339:0fd74235b34d
105 Path path; 105 Path path;
106 //This assures that the agent always steps into the center of the cell. 106 //This assures that the agent always steps into the center of the cell.
107 Location to(m_to); 107 Location to(m_to);
108 to.setExactLayerCoordinates(FIFE::intPt2doublePt(to.getLayerCoordinates())); 108 to.setExactLayerCoordinates(FIFE::intPt2doublePt(to.getLayerCoordinates()));
109 path.push_back(to); 109 path.push_back(to);
110 int count = 0;
111 while(current != end) { 110 while(current != end) {
112 if(m_spt[current] < 0 ) { 111 if(m_spt[current] < 0 ) {
113 // This is when the size of m_spt can not handle the distance of the location 112 // This is when the size of m_spt can not handle the distance of the location
114 setSearchStatus(search_status_failed); 113 setSearchStatus(search_status_failed);
115 break; 114 break;