This commit is contained in:
aozhiwei 2021-09-09 15:41:30 +08:00
parent 05482d018b
commit b915ae99bb
3 changed files with 2 additions and 1 deletions

View File

@ -2448,7 +2448,6 @@ void Human::NotifyObservers(cs::SMUpdate* msg, cs::MFActivePlayerData* active_pl
if (observer != this && !observer->follow_synced_active_player) {
msg->set_active_player_id(GetUniId());
FillMFActivePlayerData(msg->mutable_active_player_data());
msg->mutable_active_player_data()->set_name(GetName());
if (!refreshed_view) {
std::set<int> synced_objects;
{

View File

@ -1310,6 +1310,7 @@ void Player::AsyncRequestWatchWar(bool send_rsp_msg)
cs::SMWatchWar respmsg;
Human* target = hum->room->GetWatchWarTarget(hum);
if (target) {
respmsg.set_name(target->GetName());
hum->SendNotifyMsg(respmsg);
hum->FollowTarget(target);
target->StartRefreshViewTimer();

View File

@ -1071,6 +1071,7 @@ message SMWatchWar
{
optional int32 error_code = 1 [default = 0]; // 0: 1:
optional string error_msg = 2; //
optional string name = 3; //
}
//