遇到阻挡时速度不变

This commit is contained in:
aozhiwei 2019-09-25 14:25:29 +08:00
parent 5886cb8914
commit b8de4b85b1

View File

@ -1987,9 +1987,11 @@ void Human::_UpdateMove(int speed)
if (IsCollisionInMapService()) {
pos = old_pos;
FindPathInMapService();
#if 0
if (rand() % 3 == 0) {
i += 1;
}
#endif
}
room->grid_service.MoveHuman(this);
}