sanity check in gameserver_stats if the msg source steamid was similar to us!
This commit is contained in:
parent
e143a6dd82
commit
2f5b0a4bea
@ -537,6 +537,9 @@ void Steam_GameServerStats::network_callback_updated_stats(Common_Message *msg)
|
|||||||
// only triggered when we have a message
|
// only triggered when we have a message
|
||||||
void Steam_GameServerStats::network_callback(Common_Message *msg)
|
void Steam_GameServerStats::network_callback(Common_Message *msg)
|
||||||
{
|
{
|
||||||
|
// this should never happen, but just in case
|
||||||
|
if (msg->source_id() == settings->get_local_steam_id().ConvertToUint64()) return;
|
||||||
|
|
||||||
switch (msg->gameserver_stats_messages().type())
|
switch (msg->gameserver_stats_messages().type())
|
||||||
{
|
{
|
||||||
// user sent all their stats
|
// user sent all their stats
|
||||||
|
Loading…
x
Reference in New Issue
Block a user