添加游戏结算日志
This commit is contained in:
parent
2147be22c8
commit
93bceb6095
@ -82,6 +82,8 @@ void GameLog::GameEnd(Player* hum)
|
|||||||
} else {
|
} else {
|
||||||
prop->SetVal("alive_time", hum->dead_frameno * 1000.0f / SERVER_FRAME_RATE);
|
prop->SetVal("alive_time", hum->dead_frameno * 1000.0f / SERVER_FRAME_RATE);
|
||||||
}
|
}
|
||||||
|
prop->SetVal("gameover_pass_frame_num", hum->room->GetFrameNo() - hum->last_cmmove_frameno);
|
||||||
|
prop->SetVal("socket_handle", hum->socket_handle);
|
||||||
|
|
||||||
f8::TGLog::Instance()->AddTrackLog(game_id, hum->account_id, hum->ip_saddr, logclass1, logclass2, prop);
|
f8::TGLog::Instance()->AddTrackLog(game_id, hum->account_id, hum->ip_saddr, logclass1, logclass2, prop);
|
||||||
|
|
||||||
|
@ -59,6 +59,7 @@ class Human : public MoveableEntity
|
|||||||
long long user_value1 = 0;
|
long long user_value1 = 0;
|
||||||
long long user_value2 = 0;
|
long long user_value2 = 0;
|
||||||
long long user_value3 = 0;
|
long long user_value3 = 0;
|
||||||
|
long long last_cmmove_frameno = 0;
|
||||||
bool downed = false;
|
bool downed = false;
|
||||||
bool disconnected = false;
|
bool disconnected = false;
|
||||||
int anim_type = 0;
|
int anim_type = 0;
|
||||||
|
@ -1017,6 +1017,7 @@ void Player::_CMMove(f8::MsgHdr& hdr, const cs::CMMove& msg)
|
|||||||
} else {
|
} else {
|
||||||
use_skill = false;
|
use_skill = false;
|
||||||
}
|
}
|
||||||
|
last_cmmove_frameno = room->GetFrameNo();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Player::UpdateDropWeapon()
|
void Player::UpdateDropWeapon()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user