minor changes to grid walking
This commit is contained in:
@@ -60,8 +60,8 @@ public:
|
||||
|
||||
// get the current position along the path
|
||||
const Point3 curPosOnPath = path.getPosAfterDistance(this->walkedDistance);
|
||||
const bool isOnFloor = path.isOnFloor(this->walkedDistance);
|
||||
const Type type = (isOnFloor) ? (Type::FLOOR) : (Type::NON_FLOOR);
|
||||
const bool isPlainPart = path.isPlain(this->walkedDistance);
|
||||
const Type type = (isPlainPart) ? (Type::FLOOR) : (Type::NON_FLOOR);
|
||||
|
||||
Log::add(name, "walkTime: " + std::to_string(walkedTime.sec()) + " walkDistance: " + std::to_string(walkedDistance) + " -> " + curPosOnPath.asString() );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user