1
This commit is contained in:
parent
734c4d958c
commit
18367b8c17
@ -1532,23 +1532,28 @@ void Room::UpdateGasInactiveMoba()
|
|||||||
battle_start_frameno_ = GetFrameNo();
|
battle_start_frameno_ = GetFrameNo();
|
||||||
#if 1
|
#if 1
|
||||||
App::Instance()->verify_set_pos = 1;
|
App::Instance()->verify_set_pos = 1;
|
||||||
for (auto& pair : human_hash_) {
|
TraverseHumanList
|
||||||
Human* hum = pair.second;
|
(
|
||||||
if (!hum->GetBornPoint()) {
|
[this] (Human* ele_hum) -> bool
|
||||||
abort();
|
{
|
||||||
} else {
|
Human* hum = ele_hum;
|
||||||
hum->SetPos(hum->GetBornPoint()->RandPoint(this));
|
if (!hum->GetBornPoint()) {
|
||||||
}
|
abort();
|
||||||
a8::XPrintf("set_pos side:%d %d pos:%f %f %f\n", {
|
} else {
|
||||||
hum->side,
|
hum->SetPos(hum->GetBornPoint()->RandPoint(this));
|
||||||
hum->GetUniId(),
|
}
|
||||||
hum->GetPos().GetX(),
|
#ifdef MYDEBUG
|
||||||
hum->GetPos().GetY(),
|
a8::XPrintf("set_pos side:%d %d pos:%f %f %f\n", {
|
||||||
hum->GetPos().GetZ(),
|
hum->side,
|
||||||
});
|
hum->GetUniId(),
|
||||||
hum->GetMovement()->ClearPath();
|
hum->GetPos().GetX(),
|
||||||
grid_service->MoveCreature(hum);
|
hum->GetPos().GetY(),
|
||||||
}
|
hum->GetPos().GetZ(),
|
||||||
|
});
|
||||||
|
#endif
|
||||||
|
hum->GetMovement()->ClearPath();
|
||||||
|
grid_service->MoveCreature(hum);
|
||||||
|
});
|
||||||
App::Instance()->verify_set_pos = 0;
|
App::Instance()->verify_set_pos = 0;
|
||||||
for (auto& pair : team_hash_) {
|
for (auto& pair : team_hash_) {
|
||||||
pair.second->GenBattleUuid();
|
pair.second->GenBattleUuid();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user