X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=network_common.h;fp=network_common.h;h=7b6f81d22b8cffb2b9c7b82df493b929eaa5282a;hb=15c0b8cb57ed5d10814103eaa0b5c06e8ae117e4;hp=b3abade7705e2573e04b7d48313b5a5866218482;hpb=bdd98e4458be4a143cd415e5077b373129b1b0d9;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/network_common.h b/network_common.h index b3abade..7b6f81d 100644 --- a/network_common.h +++ b/network_common.h @@ -29,4 +29,14 @@ static u32 network_msgstring( const char *src, 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