summaryrefslogtreecommitdiff
path: root/source/cl_parse.c
diff options
context:
space:
mode:
authorAndrey Nazarov <skuller@skuller.net>2008-12-15 19:03:26 +0000
committerAndrey Nazarov <skuller@skuller.net>2008-12-15 19:03:26 +0000
commitd95b0f66063fb7bb6e0faa2cc3b76cbca33b89e7 (patch)
tree8d95b2ebbcac92fed7ead1aa2876f7013310419e /source/cl_parse.c
parent8f0130537b9fbf8d61033212302612d08a300b6f (diff)
Put -lm back as it seems to break on non-i386 arches.
Removed `sys_stdio' cvar in favor of `sys_console' on Unix. Unix client no longer writes anything on stdout by default if launched without a terminal (e.g. from X session). Server now uses entity origin instead of view origin when performing PVS/PHS culling of multicast data (fixes railing/chaining out of the water, etc). MVD client now clears roll angle of player entities. Really fixed MVD channel overflow recovery. Use RTLD_LAZY for loading game library on Unix to work around old mods. When adjusting lightmap/texture color saturation, calculate luminance accoring to sRGB colorspace specification. Fixed OpenGL renderer's PVS glitches when crossing water boundaries. Re-enable MD3 model support.
Diffstat (limited to 'source/cl_parse.c')
-rw-r--r--source/cl_parse.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/cl_parse.c b/source/cl_parse.c
index b54ec7f..57addb4 100644
--- a/source/cl_parse.c
+++ b/source/cl_parse.c
@@ -97,7 +97,7 @@ qboolean CL_CheckOrDownloadFile( const char *path ) {
cls.download.file = f;
// give the server an offset to start the download
Com_Printf( "Resuming %s\n", cls.download.name );
- CL_ClientCommand( va( "download \"%s\" %i", cls.download.name, len ) );
+ CL_ClientCommand( va( "download \"%s\" %"PRIz, cls.download.name, len ) );
} else {
Com_Printf( "Downloading %s\n", cls.download.name );
CL_ClientCommand( va( "download \"%s\"", cls.download.name ) );
@@ -670,7 +670,8 @@ static void CL_ParseConfigstring( int index ) {
maxlen = CS_SIZE( index );
len = MSG_ReadString( string, maxlen );
if( len >= maxlen ) {
- Com_Error( ERR_DROP, "%s: index %d overflowed", __func__, index );
+ Com_Error( ERR_DROP, "%s: index %d overflowed: %"PRIz" > %"PRIz,
+ __func__, index, len, maxlen - 1 );
}
if( cl_shownet->integer > 2 ) {