X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;ds=sidebyside;f=network.h;h=ef3455de14f77f873f8425a1e7d46405f57da949;hb=cedb92d590f4578a246a09a96c0fa0eda109d3c7;hp=1ffb06b8bb496d5996016adc27ff231d66e96c42;hpb=ba5f879f85b9cab1e2b37241399d79709fe4f584;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/network.h b/network.h index 1ffb06b..ef3455d 100644 --- a/network.h +++ b/network.h @@ -9,7 +9,7 @@ /* * Interface */ -//#define SR_USE_LOCALHOST +#define SR_USE_LOCALHOST /* Call it at start; Connects us to the gameserver */ static void network_init(void); @@ -38,6 +38,7 @@ static void network_submit_highscore( u32 trackid, u16 points, u16 time ); static u8 steam_app_ticket[ 1024 ]; static u32 steam_app_ticket_length; static int network_name_update = 1; +static int network_scores_updated = 0; static HSteamNetConnection cremote; static ESteamNetworkingConnectionState cremote_state = @@ -263,6 +264,8 @@ static void on_inet_scoreboard( SteamNetworkingMessage_t *msg ) /* We dont need to stay on the server currently */ SteamAPI_ISteamNetworkingSockets_CloseConnection( hSteamNetworkingSockets, cremote, 0, NULL, 1 ); + + network_scores_updated = 1; } static void poll_connection(void)