diff --git a/server/gameserver/android.cc b/server/gameserver/android.cc index 49a3bc21..37e073a9 100644 --- a/server/gameserver/android.cc +++ b/server/gameserver/android.cc @@ -85,16 +85,14 @@ void Android::Update(int delta_time) } } #ifdef MYDEBUG - if (room->BattleStarted()) { - if (!dead && - room->debug_params.find(119) != room->debug_params.end()) { - BeKill(VP_Gas, - TEXT("battle_server_killer_gas", "毒圈"), - VW_Gas, - VP_Gas, - TEXT("battle_server_killer_gas", "毒圈")); - a8::UnSetBitFlag(status, CS_Disable); - } + if (!dead && + room->debug_params.find(119) != room->debug_params.end()) { + BeKill(VP_Gas, + TEXT("battle_server_killer_gas", "毒圈"), + VW_Gas, + VP_Gas, + TEXT("battle_server_killer_gas", "毒圈")); + a8::UnSetBitFlag(status, CS_Disable); } #endif InternalUpdate(delta_time); diff --git a/server/gameserver/commands.cc b/server/gameserver/commands.cc index 3b86b792..d9bc86dc 100644 --- a/server/gameserver/commands.cc +++ b/server/gameserver/commands.cc @@ -86,6 +86,15 @@ void Player::_CMExecCommand(f8::MsgHdr* hdr, const cs::CMExecCommand& msg) } else if (cmd == "chiji") { #if MYDEBUG room->debug_params[119] = 1; + room->xtimer.SetTimeoutEx + (1, + [this] (int event, const a8::Args* args) + { + if (a8::TIMER_EXEC_EVENT == event) { + room->GetIncubator()->ShowHand(); + } + }, + &xtimer_attacher); #endif } else if (cmd == "add_hp") { if (cmds.size() > 1) { diff --git a/server/gameserver/incubator.cc b/server/gameserver/incubator.cc index f9f41cf9..1cd8739a 100644 --- a/server/gameserver/incubator.cc +++ b/server/gameserver/incubator.cc @@ -252,7 +252,11 @@ void Incubator::AutoAllocAndroid() case GasWaiting: case GasMoving: { +#if 1 + if (!hold_humans_.empty() && hold_humans_.size() > 0) { +#else if (!hold_humans_.empty() && hold_humans_.size() > 6) { +#endif Human* hum = hold_humans_[0]; if (room->GetGasData().GetGasMode() == GasWaiting && hold_humans_.size() > 1 && diff --git a/server/gameserver/pbutils.cc b/server/gameserver/pbutils.cc index a77ce52f..a797366d 100644 --- a/server/gameserver/pbutils.cc +++ b/server/gameserver/pbutils.cc @@ -2252,6 +2252,10 @@ int Room::InitWithMobaBattle(long ip_saddr, int socket_handle, std::shared_ptr 2) { + abort(); + } p->TraverseMemberList ( [p, msg, ip_saddr, socket_handle] (MobaMember* m) -> bool