This commit is contained in:
aozhiwei 2019-06-18 20:23:33 +08:00
parent 98381f5aad
commit b7dca21c59
2 changed files with 3 additions and 1 deletions

View File

@ -342,6 +342,7 @@ void Room::FillSMJoinedNotify(Player* self_hum, cs::SMJoinedNotify& msg)
msg.set_team_mode(msg.team_mode());
msg.set_player_id(self_hum->entity_uniid);
msg.set_started(false);
#if 0
for (auto& pair : uniid_hash_) {
if (pair.second->entity_type == ET_Player) {
Human* hum = (Human*)pair.second;
@ -351,6 +352,7 @@ void Room::FillSMJoinedNotify(Player* self_hum, cs::SMJoinedNotify& msg)
info->set_name(hum->name);
}
}
#endif
}
void Room::ScatterDrop(Vector2D center, int drop_id)

View File

@ -684,7 +684,7 @@ message SMJoinedNotify
optional int32 team_mode = 1; // 0: 1:
optional int32 player_id = 2; //id()
optional bool started = 3; //
repeated MFPlayerInfo player_infos = 4; //
//repeated MFPlayerInfo player_infos = 4; //
optional int32 map_type = 5; //
optional bool elo_start = 6; //