1
This commit is contained in:
parent
ab2aa4674b
commit
299414d478
@ -2225,30 +2225,30 @@ void Room::RandRemoveAndroid()
|
|||||||
if (hum->GetBornPoint()) {
|
if (hum->GetBornPoint()) {
|
||||||
DecBornPointHumanNum(hum->GetBornPoint(), hum);
|
DecBornPointHumanNum(hum->GetBornPoint(), hum);
|
||||||
}
|
}
|
||||||
|
if (!hum->IsOb()) {
|
||||||
|
DecAliveCount();
|
||||||
|
}
|
||||||
|
TraverseRawHumanList
|
||||||
|
(
|
||||||
|
[hum] (Human* ele_hum) -> bool
|
||||||
|
{
|
||||||
|
ele_hum->RemovePartObjects(hum);
|
||||||
|
return true;
|
||||||
|
});
|
||||||
|
TraverseRawHumanList
|
||||||
|
(
|
||||||
|
[hum] (Human* ele_hum) -> bool
|
||||||
|
{
|
||||||
|
ele_hum->RemoveObjects(hum);
|
||||||
|
return true;
|
||||||
|
});
|
||||||
|
frame_event.AddExitGame(hum->GetWeakPtrRef());
|
||||||
grid_service->DeatchHuman(hum);
|
grid_service->DeatchHuman(hum);
|
||||||
RemoveFromMoveableHash(hum);
|
RemoveFromMoveableHash(hum);
|
||||||
RemoveFromEntityHash(hum);
|
RemoveFromEntityHash(hum);
|
||||||
RemoveFromHuamnHash(hum);
|
RemoveFromHuamnHash(hum);
|
||||||
RemoveFromAliveHumanHash(hum);
|
RemoveFromAliveHumanHash(hum);
|
||||||
AddToRemovedRobotHash(hum);
|
AddToRemovedRobotHash(hum);
|
||||||
if (!hum->IsOb()) {
|
|
||||||
DecAliveCount();
|
|
||||||
}
|
|
||||||
TraverseRawHumanList
|
|
||||||
(
|
|
||||||
[] (Human* ele_hum) -> bool
|
|
||||||
{
|
|
||||||
ele_hum->RemovePartObjects(ele_hum);
|
|
||||||
return true;
|
|
||||||
});
|
|
||||||
TraverseRawHumanList
|
|
||||||
(
|
|
||||||
[] (Human* ele_hum) -> bool
|
|
||||||
{
|
|
||||||
ele_hum->RemoveObjects(ele_hum);
|
|
||||||
return true;
|
|
||||||
});
|
|
||||||
frame_event.AddExitGame(hum->GetWeakPtrRef());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -203,7 +203,7 @@ behaviac::EBTStatus AndroidAgent::CoJoin()
|
|||||||
msg.set_auto_fill(1);
|
msg.set_auto_fill(1);
|
||||||
msg.set_name("");
|
msg.set_name("");
|
||||||
msg.set_avatar_url("");
|
msg.set_avatar_url("");
|
||||||
msg.set_mapid(2002);
|
msg.set_mapid(2001);
|
||||||
msg.set_hero_id(30800);
|
msg.set_hero_id(30800);
|
||||||
//weapons
|
//weapons
|
||||||
msg.set_session_id(owner_->GetSessionId());
|
msg.set_session_id(owner_->GetSessionId());
|
||||||
@ -255,11 +255,12 @@ behaviac::EBTStatus AndroidAgent::CoUpdateGame()
|
|||||||
cs::CMMove msg;
|
cs::CMMove msg;
|
||||||
ToPb(curr_dir_, msg.mutable_move_dir());
|
ToPb(curr_dir_, msg.mutable_move_dir());
|
||||||
ToPb(curr_dir_, msg.mutable_attack_dir());
|
ToPb(curr_dir_, msg.mutable_attack_dir());
|
||||||
|
msg.set_emote(200001);
|
||||||
|
msg.set_shot_start(1);
|
||||||
|
msg.set_shot_hold(1);
|
||||||
if (sand_table_target_pos) {
|
if (sand_table_target_pos) {
|
||||||
ToPb(*sand_table_target_pos.get(), msg.mutable_sand_table_target_pos());
|
ToPb(*sand_table_target_pos.get(), msg.mutable_sand_table_target_pos());
|
||||||
}
|
}
|
||||||
msg.set_shot_start(1);
|
|
||||||
msg.set_shot_hold(1);
|
|
||||||
owner_->SendMsg(msg);
|
owner_->SendMsg(msg);
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
|
@ -32,7 +32,7 @@ void PlayerMgr::Init()
|
|||||||
account_id_hash_[hum->GetAccountId()] = hum;
|
account_id_hash_[hum->GetAccountId()] = hum;
|
||||||
socket_id_hash_[hum->GetSocketId()] = hum;
|
socket_id_hash_[hum->GetSocketId()] = hum;
|
||||||
++count;
|
++count;
|
||||||
if (count >= 2000) {
|
if (count >= 200) {
|
||||||
f8::Timer::Instance()->DeleteCurrentTimer();
|
f8::Timer::Instance()->DeleteCurrentTimer();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user