From 7be2b923d77b51758774f113c6533d5d0946e7f9 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Tue, 30 Apr 2024 15:09:20 +0800 Subject: [PATCH] 1 --- server/gameserver/commands.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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();