numerous
[carveJwlIkooP6JGAAIwe30JlM.git] / network.h
index 1ffb06b8bb496d5996016adc27ff231d66e96c42..ef3455de14f77f873f8425a1e7d46405f57da949 100644 (file)
--- 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)