Remove newlines from Com_Error message format strings, patch by DevHC
This commit is contained in:
1 parent
59271903a2
commit
c95bd0a684
20 files changed
+60
-60
No files matched your search
@@ -108,7 +108,7 @@ void SV_SetConfigstring (int index, const char *val) {
|
||||
client_t *client;
|
||||
|
||||
if ( index < 0 || index >= MAX_CONFIGSTRINGS ) {
|
||||
Com_Error (ERR_DROP, "SV_SetConfigstring: bad index %i\n", index);
|
||||
Com_Error (ERR_DROP, "SV_SetConfigstring: bad index %i", index);
|
||||
}
|
||||
|
||||
if ( !val ) {
|
||||
@@ -156,7 +156,7 @@ void SV_GetConfigstring( int index, char *buffer, int bufferSize ) {
|
||||
Com_Error( ERR_DROP, "SV_GetConfigstring: bufferSize == %i", bufferSize );
|
||||
}
|
||||
if ( index < 0 || index >= MAX_CONFIGSTRINGS ) {
|
||||
Com_Error (ERR_DROP, "SV_GetConfigstring: bad index %i\n", index);
|
||||
Com_Error (ERR_DROP, "SV_GetConfigstring: bad index %i", index);
|
||||
}
|
||||
if ( !sv.configstrings[index] ) {
|
||||
buffer[0] = 0;
|
||||
@@ -175,7 +175,7 @@ SV_SetUserinfo
|
||||
*/
|
||||
void SV_SetUserinfo( int index, const char *val ) {
|
||||
if ( index < 0 || index >= sv_maxclients->integer ) {
|
||||
Com_Error (ERR_DROP, "SV_SetUserinfo: bad index %i\n", index);
|
||||
Com_Error (ERR_DROP, "SV_SetUserinfo: bad index %i", index);
|
||||
}
|
||||
|
||||
if ( !val ) {
|
||||
@@ -199,7 +199,7 @@ void SV_GetUserinfo( int index, char *buffer, int bufferSize ) {
|
||||
Com_Error( ERR_DROP, "SV_GetUserinfo: bufferSize == %i", bufferSize );
|
||||
}
|
||||
if ( index < 0 || index >= sv_maxclients->integer ) {
|
||||
Com_Error (ERR_DROP, "SV_GetUserinfo: bad index %i\n", index);
|
||||
Com_Error (ERR_DROP, "SV_GetUserinfo: bad index %i", index);
|
||||
}
|
||||
Q_strncpyz( buffer, svs.clients[ index ].userinfo, bufferSize );
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user