遇到阻挡时速度不变
This commit is contained in:
parent
5886cb8914
commit
b8de4b85b1
@ -1987,9 +1987,11 @@ void Human::_UpdateMove(int speed)
|
|||||||
if (IsCollisionInMapService()) {
|
if (IsCollisionInMapService()) {
|
||||||
pos = old_pos;
|
pos = old_pos;
|
||||||
FindPathInMapService();
|
FindPathInMapService();
|
||||||
|
#if 0
|
||||||
if (rand() % 3 == 0) {
|
if (rand() % 3 == 0) {
|
||||||
i += 1;
|
i += 1;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
room->grid_service.MoveHuman(this);
|
room->grid_service.MoveHuman(this);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user