gamelog add team_id
This commit is contained in:
parent
c734099e84
commit
c75403bc0d
@ -27,6 +27,7 @@ void GameLog::GameStart(Player* hum)
|
||||
prop->SetVal("nickname", hum->name);
|
||||
//prop->SetVal("localuuid", "");
|
||||
//prop->SetVal("start_param", "");
|
||||
prop->SetVal("team_id", hum->team_id);
|
||||
prop->SetVal("server_node_id", App::Instance()->node_id);
|
||||
prop->SetVal("server_instance_id", App::Instance()->instance_id);
|
||||
|
||||
@ -62,6 +63,7 @@ void GameLog::GameEnd(Player* hum)
|
||||
//prop->SetVal("localuuid", "");
|
||||
prop->SetVal("game_time", a8::XGetTickCount() - hum->create_tick);
|
||||
//prop->SetVal("start_param", "");
|
||||
prop->SetVal("team_id", hum->team_id);
|
||||
prop->SetVal("server_node_id", App::Instance()->node_id);
|
||||
prop->SetVal("server_instance_id", App::Instance()->instance_id);
|
||||
|
||||
|
@ -564,7 +564,8 @@ void Human::FillSMGameOver(cs::SMGameOver& msg)
|
||||
room->TouchHumanList(a8::XParams(),
|
||||
[&human_list] (Human* hum, a8::XParams& param) -> bool
|
||||
{
|
||||
if (hum->leave_frameno_ == 0 || hum->leave_frameno_ > hum->room->battle_start_frameno_) {
|
||||
if (hum->leave_frameno_ == 0 ||
|
||||
hum->leave_frameno_ > hum->room->battle_start_frameno_) {
|
||||
human_list.push_back(hum);
|
||||
}
|
||||
return true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user