This commit is contained in:
aozhiwei 2023-05-31 14:39:09 +08:00
parent 32cb4e1bf1
commit e314b876a2

View File

@ -628,7 +628,7 @@ void Player::Shot()
glm::vec3 old_attack_dir = GetAttackDir();
if (std::fabs(shot_client_pos->x - GetPos().GetX()) < 60.0f &&
std::fabs(shot_client_pos->y - GetPos().GetY()) < 5.0f &&
std::fabs(shot_client_pos->y - GetPos().GetZ()) < 60.0f) {
std::fabs(shot_client_pos->z - GetPos().GetZ()) < 60.0f) {
glm::vec3 new_attack_dir = *shot_target_pos - GetPos().ToGlmVec3();
GlmHelper::Normalize(new_attack_dir);
SetAttackDir(new_attack_dir);
@ -1414,9 +1414,7 @@ void Player::PushJoinRoomMsg()
notifymsg.set_server_info(JsonDataMgr::Instance()->server_info);
room->FillSMJoinedNotify(this, notifymsg);
#ifdef DEBUG
if (App::Instance()->instance_id == 6) {
notifymsg.set_pre_client_shot(mt::Param::s().pre_client_shot);
}
#else
notifymsg.set_pre_client_shot(mt::Param::s().pre_client_shot);
#endif