1
This commit is contained in:
parent
28f2816ede
commit
9630044bf9
@ -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)
|
void FrameMaker::SerializePlaySkills(cs::SMUpdate* msg, Room* room, Human* hum, FrameData* framedata)
|
||||||
{
|
{
|
||||||
for (size_t idx : framedata->play_skills_) {
|
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()) {
|
if (idx < room->frame_event.play_skills_.size()) {
|
||||||
auto& tuple = room->frame_event.play_skills_[idx];
|
auto& tuple = room->frame_event.play_skills_[idx];
|
||||||
if (std::get<0>(tuple).Get() && hum->CanSee(std::get<0>(tuple).Get())) {
|
if (std::get<0>(tuple).Get() && hum->CanSee(std::get<0>(tuple).Get())) {
|
||||||
|
@ -802,7 +802,7 @@ void Player::_CMMove(f8::MsgHdr& hdr, const cs::CMMove& msg)
|
|||||||
use_skill = false;
|
use_skill = false;
|
||||||
}
|
}
|
||||||
last_cmmove_frameno = room->GetFrameNo();
|
last_cmmove_frameno = room->GetFrameNo();
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG1
|
||||||
if (msg.has_drop_weapon()) {
|
if (msg.has_drop_weapon()) {
|
||||||
SendDebugMsg(a8::Format("zzzzzzzz frameno:%d drop_weapon:%d", {room->GetFrameNo(), msg.drop_weapon()}));
|
SendDebugMsg(a8::Format("zzzzzzzz frameno:%d drop_weapon:%d", {room->GetFrameNo(), msg.drop_weapon()}));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user