This commit is contained in:
aozhiwei 2022-11-30 10:38:21 +08:00
parent 0d6d0cfac4
commit 4b4f35b25f

View File

@ -141,6 +141,8 @@ void MoveableEntity::CalcTargetPos(float distance)
int ret = room->map_instance->Raycast(0, start, end, hit_point);
if (ret > 1) {
SetTargetPos(hit_point * 10.0f);
} else {
SetTargetPos(end * 10.0f);
}
}