modified colorname buffer assignment

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@4109 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
ac_stef
2009-01-04 15:31:48 +00:00
parent 6b41796c15
commit b526aeda6c
4 changed files with 17 additions and 11 deletions
+2 -2
View File
@@ -295,12 +295,12 @@ void parsemessages(int cn, playerent *d, ucharbuf &p)
if(d->name[0]) // already connected
{
if(strcmp(d->name, text))
conoutf("%s is now known as %s", colorname(d, 0), colorname(d, 1, text));
conoutf("%s is now known as %s", colorname(d), colorname(d, text));
}
else // new client
{
c2sinit = false; // send new players my info again
conoutf("connected: %s", colorname(d, 0, text));
conoutf("connected: %s", colorname(d, text));
}
s_strncpy(d->name, text, MAXNAMELEN+1);
getstring(text, p);