diff options
author | Andrey Nazarov <skuller@skuller.net> | 2009-01-10 22:10:03 +0000 |
---|---|---|
committer | Andrey Nazarov <skuller@skuller.net> | 2009-01-10 22:10:03 +0000 |
commit | 9b015c1322a3e8be37c476d1be5f4ef68d2b8b9c (patch) | |
tree | 9fb9a7dfd9b5154ecf5d871906ec7a548aab077e /source/net_common.c | |
parent | 7ee7c25e791d374ef960bbfc084b23c579f8a2ed (diff) |
Made MinGW built OpenFFA game DLL loadable on Win32.
Server now disallows ‘map’ command by default if no latched variables were
changed. Added ‘sv_allow_map’ cvar to turn this check off.
Implemented ‘kickban’ server command.
Made address/mask matching code endianess safe.
Made ‘dumpuser’ server command more verbose.
Display client FPS value in the output of ‘status’ command.
Fixed a crash when MVD channel with an active GTV connection was destroyed.
Made it possible to re-enable old Q2 brush tracing bug via ‘map_allsolid_bug’ cvar.
Added ‘allow_download_textures’ and ‘allow_download_pics’ cvar for fine
tuning download options on client and server sides.
Changed ‘allow_download’ default value to 0.
Diffstat (limited to 'source/net_common.c')
-rw-r--r-- | source/net_common.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/net_common.c b/source/net_common.c index 0067bfc..328c298 100644 --- a/source/net_common.c +++ b/source/net_common.c @@ -489,7 +489,9 @@ static neterr_t get_icmp_error( int s ) { case EHOSTUNREACH: case EHOSTDOWN: case ECONNREFUSED: +#ifdef ENONET case ENONET: +#endif Com_DPrintf( "%s: %s from %s\n", __func__, NET_ErrorString(), NET_AdrToString( &net_from ) ); return NET_ERROR; @@ -1442,11 +1444,11 @@ qboolean NET_GetAddress( netsrc_t sock, netadr_t *adr ) { } static size_t NET_UpRate_m( char *buffer, size_t size ) { - return Q_snprintf( buffer, size, "%"PRIz, net_rate_up ); + return Q_scnprintf( buffer, size, "%"PRIz, net_rate_up ); } static size_t NET_DnRate_m( char *buffer, size_t size ) { - return Q_snprintf( buffer, size, "%"PRIz, net_rate_dn ); + return Q_scnprintf( buffer, size, "%"PRIz, net_rate_dn ); } static void net_udp_param_changed( cvar_t *self ) { |