X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=network.h;h=b643a1b7da9f96641972d352417c3569d3ba2577;hb=70ff4a83e5a4b35436388d9bb999c939559ac23f;hp=3b445d5639a7c4106a380a3c05b83d97624f9d7b;hpb=9c0893a71497912deecdcd84dff9afbeac32f8f4;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/network.h b/network.h index 3b445d5..b643a1b 100644 --- a/network.h +++ b/network.h @@ -8,6 +8,7 @@ #include "vg/vg_stdint.h" #include "steam.h" +#include "network_common.h" #include "network_msg.h" #include "highscores.h" #include "addon_types.h" @@ -45,6 +46,7 @@ struct { HSteamNetConnection remote; ESteamNetworkingConnectionState state; + u32 remote_version; f64 last_attempt, last_frame; u32 retries; @@ -78,6 +80,7 @@ static void network_publish_laptime( const char *mod_uid, static void chat_send_message( const char *message ); static int network_connected(void){ + if( network_client.remote_version != NETWORK_SKATERIFT_VERSION ) return 0; return network_client.state == k_ESteamNetworkingConnectionState_Connected; }