This commit is contained in:
aozhiwei 2023-12-12 15:47:39 +08:00
parent 701c760eff
commit eabc8c9dd4
3 changed files with 3 additions and 2 deletions

View File

@ -33,6 +33,7 @@ behaviac::EBTStatus AndroidAgent::SearchEnemy(int range)
bool AndroidAgent::NetIsConnected()
{
a8::XPrintf("NetIsConnected\n", {});
return true;
return owner_->GetWebSocket()->Connected() != 0;
}

View File

@ -25,7 +25,7 @@ void Perf::UnInit()
void Perf::Output()
{
f8::UdpLog::Instance()->Info
("perf login_ok:%d login_fail:%d enter_ok:%d enter_fail:%d connect_ok:%d connect_fail:%d chg_dir:%d send_move:%d udate:%d",
("perf login_ok:%d login_fail:%d enter_ok:%d enter_fail:%d connect_ok:%d connect_fail:%d chg_dir:%d send_move:%d update:%d",
{
login_ok_times,
login_fail_times,

View File

@ -32,7 +32,7 @@ void PlayerMgr::Init()
account_id_hash_[hum->GetAccountId()] = hum;
socket_id_hash_[hum->GetSocketId()] = hum;
++count;
if (count >= 19) {
if (count >= 1) {
f8::Timer::Instance()->DeleteCurrentTimer();
}
}