[v0.58.1] Messages sent via F8 in Coop are truncated
#4
Great! That cherry-pick worked like a charm.

Here's the specific patch I came up with in case anyone else needs it:

Code:
diff --git a/main/multi.c b/main/multi.c
index 0e88951..2460c0d 100644
--- a/main/multi.c
+++ b/main/multi.c
@@ -1551,21 +1551,9 @@ void
multi_do_message(const ubyte *cbuf)
{
        const char *buf = (const char *)cbuf;
-       const char *tilde;
-       char *colon;
        char mesbuf[100];
-       char dollarbuf[100];
-       int tloc,t;
-
-       int loc = 0;
-       buf += 2;
-
-       if ((tilde=strchr (buf+loc,'$')))  // do that stupid name stuff
-       {                                                                       // why'd I put this in?  Probably for the
-               tloc=tilde-(buf+loc);                           // same reason you can name your guidebot
-               snprintf(dollarbuf, sizeof(dollarbuf), "%.*s%s%s", tloc, buf, Players[Player_num].callsign, buf+tloc+1);
-               buf = dollarbuf;
-       }
+       const char *colon;
+       int loc = 2, t;

        if (((colon = strstr(buf+loc, ": ")) == NULL) || (colon-(buf+loc) < 1) || (colon-(buf+loc) > CALLSIGN_LEN))
        {

Thanks!
Reply


Messages In This Thread
[v0.58.1] Messages sent via F8 in Coop are truncated - by nixscripter - 12-30-2013, 06:07 PM
Re: [v0.58.1] Messages sent via F8 in Coop are truncated - by nixscripter - 01-01-2014, 06:45 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)