From 5ad7b1e72d1865e360f157d6123b4900e38d6eb3 Mon Sep 17 00:00:00 2001 From: Yamagi Burmeister Date: Mon, 24 Aug 2015 17:52:57 +0200 Subject: [PATCH] Fix several printf in the client. Submitted by: Ozkan Sezer --- src/client/cl_main.c | 2 +- src/client/cl_network.c | 2 +- src/client/cl_parse.c | 2 +- src/client/cl_view.c | 6 +++--- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/client/cl_main.c b/src/client/cl_main.c index 46d8d0a8..a6869e6f 100644 --- a/src/client/cl_main.c +++ b/src/client/cl_main.c @@ -300,7 +300,7 @@ CL_Setenv_f(void) else { - Com_Printf("%s undefined\n", Cmd_Argv(1), env); + Com_Printf("%s undefined\n", Cmd_Argv(1)); } } } diff --git a/src/client/cl_network.c b/src/client/cl_network.c index cd351a37..3a8496f9 100644 --- a/src/client/cl_network.c +++ b/src/client/cl_network.c @@ -201,7 +201,7 @@ CL_Connect_f(void) { /* if running a local server, kill it and reissue note: this is connect with the save game system */ - SV_Shutdown(va("Server quit\n", msg), false); + SV_Shutdown("Server quit\n", false); } else diff --git a/src/client/cl_parse.c b/src/client/cl_parse.c index a4fa7a0e..a81f9e5e 100644 --- a/src/client/cl_parse.c +++ b/src/client/cl_parse.c @@ -987,7 +987,7 @@ CL_LoadClientinfo(clientinfo_t *ci, char *s) { /* see if the skin exists for the male model */ Com_sprintf(skin_filename, sizeof(skin_filename), - "players/%s/grunt.pcx", model_name, skin_name); + "players/%s/grunt.pcx", model_name); ci->skin = R_RegisterSkin(skin_filename); } diff --git a/src/client/cl_view.c b/src/client/cl_view.c index 571d0802..b8b06e88 100644 --- a/src/client/cl_view.c +++ b/src/client/cl_view.c @@ -307,7 +307,7 @@ CL_PrepRefresh(void) } } - Com_Printf("images\r", i); + Com_Printf("images\r"); SCR_UpdateScreen(); for (i = 1; i < MAX_IMAGES && cl.configstrings[CS_IMAGES + i][0]; i++) @@ -335,7 +335,7 @@ CL_PrepRefresh(void) CL_LoadClientinfo(&cl.baseclientinfo, "unnamed\\male/grunt"); /* set sky textures and speed */ - Com_Printf("sky\r", i); + Com_Printf("sky\r"); SCR_UpdateScreen(); rotate = (float)strtod(cl.configstrings[CS_SKYROTATE], (char **)NULL); sscanf(cl.configstrings[CS_SKYAXIS], "%f %f %f", &axis[0], &axis[1], &axis[2]); @@ -454,7 +454,7 @@ entitycmpfnc(const entity_t *a, const entity_t *b) else { return (a->model == b->model) ? 0 : - (a->model > b->model) ? 1 : -1; + (a->model > b->model) ? 1 : -1; } }