Fix ASSERT in board maker image open logic
[carveJwlIkooP6JGAAIwe30JlM.git] / network_common.h
diff --git a/network_common.h b/network_common.h
deleted file mode 100644 (file)
index 8840247..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-#ifndef NETWORK_COMMON_H
-#define NETWORK_COMMON_H
-
-#include "vg/vg_stdint.h"
-#include "vg/vg_platform.h"
-
-#define NETWORK_USERNAME_MAX 32
-#define NETWORK_MAX_PLAYERS 20
-#define NETWORK_FRAMERATE 0.1
-#define NETWORK_BUFFERFRAMES 6
-#define NETWORK_MAX_CHAT 128
-#define NETWORK_REGION_MAX 32
-#define NETWORK_SKATERIFT_VERSION 8
-#define NETWORK_REQUEST_MAX 2048
-
-#define NETWORK_LEADERBOARD_ALLTIME 0
-#define NETWORK_LEADERBOARD_CURRENT_WEEK 1
-#define NETWORK_LEADERBOARD_ALLTIME_AND_CURRENT_WEEK 2
-#define NETWORK_PORT 27403
-#define NETWORK_PORT_STR(STR, X) STR #X
-
-#include "addon_types.h"
-
-static u32 network_msgstring( const char *src, 
-                              u32 m_cbSize, u32 base_size,
-                              char *buf, u32 buf_size ){
-   
-   u32 string_len = VG_MIN( m_cbSize - base_size, buf_size );
-   return vg_strncpy( src, buf, string_len, k_strncpy_always_add_null );
-}
-
-static u32 network_pair_index( u32 _a, u32 _b ){
-   const u32 N = NETWORK_MAX_PLAYERS;
-   assert( (_a != _b) && (_a<N) && (_b<N) );
-
-   u32 a = VG_MIN( _a, _b ),
-       b = VG_MAX( _a, _b );
-
-   return ((N-a)*((N-a)-1))/2 - b + a;
-}
-
-#endif /* NETWORK_COMMON_H */