Bug 3691 - Redundant newline in SV_ConSay_f
Status: RESOLVED DUPLICATE of bug 3610
Alias: None
Product: ioquake3
Classification: Unclassified
Component: Misc
Version: unspecified
Hardware: All All
: P3 trivial
Assignee: Zachary J. Slater
QA Contact: ioquake3 bugzilla mailing list
URL:
Depends on:
Blocks:
 
Reported: 2008-06-19 13:52 EDT by Ben Millwood
Modified: 2008-06-26 05:08:36 EDT
0 users

See Also:


Attachments
remove \n (337 bytes, patch)
2008-06-19 13:52 EDT, Ben Millwood

Description Ben Millwood 2008-06-19 13:52:02 EDT
The "say" command from server console appends a newline to the given text and sends it out as a chat command to clients.
code/cgame/cg_servercmds.c, upon receiving a chat command, appends a newline to the text and prints it.
The result is that between server say and client print, /two/ newlines have been appended to the text and server say lines are followed by a blank line, which looks a little ugly.

The soon-to-be-attached patch removes one of these newlines. I'd also like to make the text of the chat green like player chat is, but perhaps that's more of a mod issue.
Comment 1 Ben Millwood 2008-06-19 13:52:35 EDT
Created attachment 1792 [details]
remove \n
Comment 2 Ben Millwood 2008-06-26 05:08:36 EDT
oops, I need to learn to search better.

*** This bug has been marked as a duplicate of bug 3610 ***