add a missing '\n', remove some unwanted ones

From /dev/humancontroller.
This commit is contained in:
Zack Middleton 2012-06-18 16:16:57 +00:00
parent c3ca5c1caa
commit a4c61d874d
7 changed files with 8 additions and 8 deletions

View file

@ -950,7 +950,7 @@ static void CG_AddCEntity( centity_t *cent ) {
switch ( cent->currentState.eType ) { switch ( cent->currentState.eType ) {
default: default:
CG_Error( "Bad entity type: %i\n", cent->currentState.eType ); CG_Error( "Bad entity type: %i", cent->currentState.eType );
break; break;
case ET_INVISIBLE: case ET_INVISIBLE:
case ET_PUSH_TRIGGER: case ET_PUSH_TRIGGER:

View file

@ -1442,12 +1442,12 @@ void CG_LoadMenus(const char *menuFile) {
Com_Printf( S_COLOR_YELLOW "menu file not found: %s, using default\n", menuFile ); Com_Printf( S_COLOR_YELLOW "menu file not found: %s, using default\n", menuFile );
len = trap_FS_FOpenFile( "ui/hud.txt", &f, FS_READ ); len = trap_FS_FOpenFile( "ui/hud.txt", &f, FS_READ );
if (!f) { if (!f) {
trap_Error( va( S_COLOR_RED "default menu file not found: ui/hud.txt, unable to continue!\n") ); trap_Error( va( S_COLOR_RED "default menu file not found: ui/hud.txt, unable to continue!" ) );
} }
} }
if ( len >= MAX_MENUDEFFILE ) { if ( len >= MAX_MENUDEFFILE ) {
trap_Error( va( S_COLOR_RED "menu file too large: %s is %i, max allowed is %i\n", menuFile, len, MAX_MENUDEFFILE ) ); trap_Error( va( S_COLOR_RED "menu file too large: %s is %i, max allowed is %i", menuFile, len, MAX_MENUDEFFILE ) );
trap_FS_FCloseFile( f ); trap_FS_FCloseFile( f );
return; return;
} }

View file

@ -1275,7 +1275,7 @@ void CG_ParticleExplosion (char *animStr, vec3_t origin, vec3_t vel, int duratio
break; break;
} }
if (!shaderAnimNames[anim]) { if (!shaderAnimNames[anim]) {
CG_Error("CG_ParticleExplosion: unknown animation string: %s\n", animStr); CG_Error("CG_ParticleExplosion: unknown animation string: %s", animStr);
return; return;
} }

View file

@ -41,7 +41,7 @@ void *G_Alloc( int size ) {
} }
if ( allocPoint + size > POOLSIZE ) { if ( allocPoint + size > POOLSIZE ) {
G_Error( "G_Alloc: failed on allocation of %i bytes\n", size ); G_Error( "G_Alloc: failed on allocation of %i bytes", size );
return NULL; return NULL;
} }

View file

@ -999,7 +999,7 @@ int SV_WriteDownloadToClient(client_t *cl, msg_t *msg)
else if ( !(sv_allowDownload->integer & DLF_ENABLE) || else if ( !(sv_allowDownload->integer & DLF_ENABLE) ||
(sv_allowDownload->integer & DLF_NO_UDP) ) { (sv_allowDownload->integer & DLF_NO_UDP) ) {
Com_Printf("clientDownload: %d : \"%s\" download disabled", (int) (cl - svs.clients), cl->downloadName); Com_Printf("clientDownload: %d : \"%s\" download disabled\n", (int) (cl - svs.clients), cl->downloadName);
if (sv_pure->integer) { if (sv_pure->integer) {
Com_sprintf(errorMessage, sizeof(errorMessage), "Could not download \"%s\" because autodownloading is disabled on the server.\n\n" Com_sprintf(errorMessage, sizeof(errorMessage), "Could not download \"%s\" because autodownloading is disabled on the server.\n\n"
"You will need to get this file elsewhere before you " "You will need to get this file elsewhere before you "

View file

@ -1004,7 +1004,7 @@ static void SV_RankNewGameCBF( GR_NEWGAME* gr_newgame, void* cbf_arg )
} }
else if( gr_newgame->status == GR_STATUS_BADLEAGUE ) else if( gr_newgame->status == GR_STATUS_BADLEAGUE )
{ {
SV_RankError( "SV_RankNewGameCBF: Invalid League name\n" ); SV_RankError( "SV_RankNewGameCBF: Invalid League name" );
} }
else else
{ {

View file

@ -931,7 +931,7 @@ void UI_LoadMenus(const char *menuFile, qboolean reset) {
Com_Printf( S_COLOR_YELLOW "menu file not found: %s, using default\n", menuFile ); Com_Printf( S_COLOR_YELLOW "menu file not found: %s, using default\n", menuFile );
handle = trap_PC_LoadSource( "ui/menus.txt" ); handle = trap_PC_LoadSource( "ui/menus.txt" );
if (!handle) { if (!handle) {
trap_Error( va( S_COLOR_RED "default menu file not found: ui/menus.txt, unable to continue!\n") ); trap_Error( va( S_COLOR_RED "default menu file not found: ui/menus.txt, unable to continue!" ) );
} }
} }