1
This commit is contained in:
parent
906c0a1127
commit
38c447505f
@ -18,6 +18,8 @@ Android::Android():Human()
|
||||
abort();
|
||||
}
|
||||
agent_->SetOwner(this);
|
||||
f8::BtMgr::Instance()->BtLoad(agent_, "android_pvp");
|
||||
f8::BtMgr::Instance()->BtSetCurrent(agent_, "android_pvp");
|
||||
}
|
||||
|
||||
Android::~Android()
|
||||
@ -86,7 +88,12 @@ void Android::InternalUpdate(int delta_time)
|
||||
room->grid_service->MoveCreature(this);
|
||||
return;
|
||||
}
|
||||
f8::BtMgr::Instance()->BtExec(agent_);
|
||||
behaviac::EBTStatus status = f8::BtMgr::Instance()->BtExec(agent_);
|
||||
#if 0
|
||||
if (status != behaviac::BT_RUNNING) {
|
||||
abort();
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
void Android::GiveEquip()
|
||||
|
@ -2512,6 +2512,7 @@ ObstacleData* Room::GetPermanentObstacleData(int obstacle_uniid)
|
||||
long long Room::GetGasInactiveTime()
|
||||
{
|
||||
#ifdef DEBUG
|
||||
return 1024;
|
||||
return App::Instance()->debug_params.find(1) != App::Instance()->debug_params.end() ?
|
||||
App::Instance()->debug_params[1] : 10;
|
||||
#endif
|
||||
@ -3700,6 +3701,7 @@ int Room::GetOnlinePlayerNum()
|
||||
size_t Room::GetRoomMaxPlayerNum()
|
||||
{
|
||||
#ifdef MAP3D
|
||||
return 2;
|
||||
return map_meta_->i->player();
|
||||
//return 2;
|
||||
#else
|
||||
|
Loading…
x
Reference in New Issue
Block a user