1
This commit is contained in:
parent
8316bc6d52
commit
d2cfdc64b2
@ -428,7 +428,11 @@ void Room::AddPlayer(Player* hum, std::shared_ptr<BornPoint> init_born_point, bo
|
|||||||
if (!hum->GetBornPoint()) {
|
if (!hum->GetBornPoint()) {
|
||||||
abort();
|
abort();
|
||||||
} else {
|
} else {
|
||||||
hum->SetPos(hum->GetBornPoint()->RandPoint(this));
|
if (!IsMobaModeRoom() && !IsSandTableRoom()) {
|
||||||
|
hum->SetPos(hum->GetBornPoint()->NewRandPoint(hum->room, 10, 100));
|
||||||
|
} else {
|
||||||
|
hum->SetPos(hum->GetBornPoint()->RandPoint(this));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
App::Instance()->verify_set_pos = 0;
|
App::Instance()->verify_set_pos = 0;
|
||||||
glm::vec3 attack_dir = hum->GetPos().ToGlmVec3();
|
glm::vec3 attack_dir = hum->GetPos().ToGlmVec3();
|
||||||
@ -529,7 +533,11 @@ void Room::CreateAndroid(int robot_num, std::shared_ptr<Team> team)
|
|||||||
if (!hum->GetBornPoint()) {
|
if (!hum->GetBornPoint()) {
|
||||||
abort();
|
abort();
|
||||||
} else {
|
} else {
|
||||||
hum->SetPos(hum->GetBornPoint()->RandPoint(this));
|
if (!IsMobaModeRoom() && !IsSandTableRoom()) {
|
||||||
|
hum->SetPos(hum->GetBornPoint()->NewRandPoint(hum->room, 10, 100));
|
||||||
|
} else {
|
||||||
|
hum->SetPos(hum->GetBornPoint()->RandPoint(this));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
App::Instance()->verify_set_pos = 0;
|
App::Instance()->verify_set_pos = 0;
|
||||||
glm::vec3 attack_dir = hum->GetPos().ToGlmVec3();
|
glm::vec3 attack_dir = hum->GetPos().ToGlmVec3();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user