mirror of
https://github.com/dashr9230/SA-MP.git
synced 2026-10-10 11:43:04 +08:00
[saco] Implement/match CNetGame::UpdateScoresPingsIPs; the six argument RPC overload sits at vtable slot 25 because MSVC reverses an overload set
This commit is contained in:
@@ -9,6 +9,8 @@ extern CAudioStream *pAudioStream;
|
||||
|
||||
void FUNC_100AABE0(); // .text:100AABE0
|
||||
|
||||
DWORD dword_10118A18;
|
||||
|
||||
//----------------------------------------------------
|
||||
|
||||
// MATCH
|
||||
@@ -249,6 +251,20 @@ void CNetGame::AttemptConnect()
|
||||
|
||||
//----------------------------------------------------
|
||||
|
||||
void CNetGame::UpdateScoresPingsIPs()
|
||||
{
|
||||
if(GetTickCount() - dword_10118A18 > 3000)
|
||||
{
|
||||
dword_10118A18 = GetTickCount();
|
||||
|
||||
RakNet::BitStream bsSend;
|
||||
if(GetRakClient())
|
||||
GetRakClient()->RPC(RPC_UpdateScoresPingsIPs, &bsSend, HIGH_PRIORITY, RELIABLE, 0, FALSE);
|
||||
}
|
||||
}
|
||||
|
||||
//----------------------------------------------------
|
||||
|
||||
void CNetGame::ResetWorldBounds()
|
||||
{
|
||||
if(field_3D5->field_2B) FUNC_100AABE0();
|
||||
|
||||
@@ -131,6 +131,8 @@ public:
|
||||
void Packet_InvalidPassword(Packet *p); // .text:10008E20
|
||||
void Packet_ConnectionAttemptFailed(Packet *p); // .text:10008E60
|
||||
|
||||
void UpdateScoresPingsIPs(); // .text:10008F10
|
||||
|
||||
void ToggleNameTagStatus(); // .text:10008E90
|
||||
void sub_1000A540(); // .text:1000A540
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user