This commit is contained in:
aozhiwei 2023-05-17 14:07:58 +08:00
parent 9b5d50cf6b
commit f51a00bb18

View File

@ -1026,6 +1026,14 @@ void Player::_CMMove(f8::MsgHdr& hdr, const cs::CMMove& msg)
} else { } else {
throw_bomb.reset(); throw_bomb.reset();
} }
if (msg.has_sand_table_target_pos()) {
if (!sand_table_target_pos) {
sand_table_target_pos = std::make_shared<glm::vec3>();
}
TypeConvert::FromPb(*sand_table_target_pos, &msg.sand_table_target_pos());
} else {
sand_table_target_pos = nullptr;
}
last_cmmove_frameno = room->GetFrameNo(); last_cmmove_frameno = room->GetFrameNo();
trace_target_uniid = msg.trace_target_uniid(); trace_target_uniid = msg.trace_target_uniid();
#ifdef DEBUG1 #ifdef DEBUG1