mirror of
https://github.com/UberGames/ioef.git
synced 2025-06-02 10:11:28 +00:00
Remove newlines from Com_Error message format strings, patch by DevHC
This commit is contained in:
parent
59271903a2
commit
c95bd0a684
20 changed files with 60 additions and 60 deletions
|
@ -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 );
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue