This commit is contained in:
aozhiwei 2021-09-15 03:32:47 +00:00
parent 980a8593e3
commit f58677afb9
2 changed files with 12 additions and 0 deletions

View File

@ -5,6 +5,8 @@
#include "framework/cpp/utils.h"
#define DEBUG
void JsonDataMgr::Init()
{
if (!f8::IsOnlineEnv()) {

View File

@ -802,6 +802,16 @@ void Player::_CMMove(f8::MsgHdr& hdr, const cs::CMMove& msg)
use_skill = false;
}
last_cmmove_frameno = room->GetFrameNo();
#ifdef DEBUG
if (msg.has_drop_weapon()) {
SendDebugMsg(a8::Format("zzzzzzzz frameno:%d drop_weapon:%d", {room->GetFrameNo(), msg.drop_weapon()}));
}
if (msg.has_interaction()) {
for (auto& obj_id : interaction_objids) {
SendDebugMsg(a8::Format("zzzzzzzz frameno:%d takeon obj_id:%d", {room->GetFrameNo(), obj_id}));
}
}
#endif
}
void Player::_CMExecCommand(f8::MsgHdr& hdr, const cs::CMExecCommand& msg)