This commit is contained in:
aozhiwei 2021-09-16 12:02:22 +00:00
parent 28f2816ede
commit 9630044bf9
2 changed files with 2 additions and 2 deletions

View File

@ -347,7 +347,7 @@ void FrameMaker::SerializeSmokes(cs::SMUpdate* msg, Room* room, Human* hum, Fram
void FrameMaker::SerializePlaySkills(cs::SMUpdate* msg, Room* room, Human* hum, FrameData* framedata)
{
for (size_t idx : framedata->play_skills_) {
msg->mutable_play_skill_list(framedata->play_skills_.size());
msg->mutable_play_skill_list()->Reserve(framedata->play_skills_.size());
if (idx < room->frame_event.play_skills_.size()) {
auto& tuple = room->frame_event.play_skills_[idx];
if (std::get<0>(tuple).Get() && hum->CanSee(std::get<0>(tuple).Get())) {

View File

@ -802,7 +802,7 @@ void Player::_CMMove(f8::MsgHdr& hdr, const cs::CMMove& msg)
use_skill = false;
}
last_cmmove_frameno = room->GetFrameNo();
#ifdef DEBUG
#ifdef DEBUG1
if (msg.has_drop_weapon()) {
SendDebugMsg(a8::Format("zzzzzzzz frameno:%d drop_weapon:%d", {room->GetFrameNo(), msg.drop_weapon()}));
}