diff --git a/server/gameserver/commands.cc b/server/gameserver/commands.cc index 8093b966..d75f8a07 100644 --- a/server/gameserver/commands.cc +++ b/server/gameserver/commands.cc @@ -502,7 +502,7 @@ void Player::_CMExecCommand(f8::MsgHdr* hdr, const cs::CMExecCommand& msg) SendDebugMsg("数值: " + str); } } else if (cmd == "moba_pingju" && cmds.size() >= 0) { - if (room->IsMobaModeRoom() && !room->IsGameOver()) { + if (room->IsMobaModeRoom() && !room->IsGameOver() && room->GetMobaOvertimeRaceFrameNo() <= 0) { room->TraverseTeams ( [] (Team* team) -> bool @@ -510,7 +510,7 @@ void Player::_CMExecCommand(f8::MsgHdr* hdr, const cs::CMExecCommand& msg) team->SetKillCount(5); return true; }); - room->xtimer.Delete(room->moba_over_timer); + room->xtimer.ModifyTime(room->moba_over_timer, 0); } } else if (cmd == "findpath" && cmds.size() >= 3) { float x = a8::XValue(cmds[1]).GetDouble();