修复宕机问题
This commit is contained in:
parent
0d7c392524
commit
e017031978
@ -1774,6 +1774,14 @@ void Room::ShuaGuideAndroid(Human* target)
|
|||||||
pos.x += MetaMgr::Instance()->newbie_first_robot_distance;
|
pos.x += MetaMgr::Instance()->newbie_first_robot_distance;
|
||||||
if (OverBorder(pos, hum->GetRadius())) {
|
if (OverBorder(pos, hum->GetRadius())) {
|
||||||
pos = target->GetPos();
|
pos = target->GetPos();
|
||||||
|
pos.y -= MetaMgr::Instance()->newbie_first_robot_distance;
|
||||||
|
if (OverBorder(pos, hum->GetRadius())) {
|
||||||
|
pos = target->GetPos();
|
||||||
|
pos.y += MetaMgr::Instance()->newbie_first_robot_distance;
|
||||||
|
if (OverBorder(pos, hum->GetRadius())) {
|
||||||
|
pos = a8::Vec2(6666, 6666);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
hum->SetPos(pos);
|
hum->SetPos(pos);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user