This commit is contained in:
aozhiwei 2023-05-29 14:51:46 +08:00
parent 507d264ffc
commit fb3bf9c79a
3 changed files with 7 additions and 0 deletions

View File

@ -41,6 +41,10 @@ namespace mt
s_.wait_cloud_time = GetIntParam("wait_cloud_time", 10);
#if 1
s_.match_lock_time++;
#endif
s_.pre_client_shot = GetIntParam("pre_client_shot", 0);
#ifdef DEBUG
s_.pre_client_shot = 1;
#endif
#if 1
{

View File

@ -106,6 +106,8 @@ namespace mt
int robot_placement_time = 360;
std::vector<float> robot_placement_type;
int pre_client_shot = 0;
};
static void StaticPostInit();
static const S& s() { return s_; };

View File

@ -1383,6 +1383,7 @@ void Player::PushJoinRoomMsg()
notifymsg.set_error_code(0);
notifymsg.set_server_info(JsonDataMgr::Instance()->server_info);
room->FillSMJoinedNotify(this, notifymsg);
notifymsg.set_pre_client_shot(mt::Param::s().pre_client_shot);
GGListener::Instance()->SendToClient(socket_handle, 0, notifymsg);
}
{