X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=network_common.h;h=ca46e4784ad0584ccc390836efd40e06cefac79a;hb=61d4952a59c72dab12aa5cb9100d4433b2cdcedf;hp=af0b4bd5ea509563a4091588824d0c0b7b5c4906;hpb=5e4c3706cbc40b1c782781d2e6bd90b721ade004;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/network_common.h b/network_common.h index af0b4bd..ca46e47 100644 --- a/network_common.h +++ b/network_common.h @@ -1,8 +1,6 @@ -#ifndef NETWORK_COMMON_H -#define NETWORK_COMMON_H - -#include "vg/vg_stdint.h" +#pragma once #include "vg/vg_platform.h" +#include "vg/vg_string.h" #define NETWORK_USERNAME_MAX 32 #define NETWORK_MAX_PLAYERS 20 @@ -31,12 +29,14 @@ static u32 network_msgstring( const char *src, static u32 network_pair_index( u32 _a, u32 _b ){ const u32 N = NETWORK_MAX_PLAYERS; - assert( (_a != _b) && (_a