1
This commit is contained in:
parent
0d6d0cfac4
commit
4b4f35b25f
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user