*** empty log message ***
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@693 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
@@ -63,7 +63,7 @@ void newname(char *name)
|
||||
if(name[0])
|
||||
{
|
||||
c2sinit = false;
|
||||
s_strncpy(player1->name, name, 16);
|
||||
s_strncpy(player1->name, name, MAXNAMELEN+1);
|
||||
}
|
||||
else conoutf("your name is: %s", player1->name);
|
||||
};
|
||||
@@ -73,7 +73,7 @@ void newteam(char *name)
|
||||
if(name[0])
|
||||
{
|
||||
if(m_teammode) ctf_team(name);
|
||||
else { c2sinit = false; s_strncpy(player1->team, name, 5); };
|
||||
else { c2sinit = false; s_strncpy(player1->team, name, MAXTEAMLEN+1); };
|
||||
}
|
||||
else conoutf("your team is: %s", player1->team);
|
||||
};
|
||||
|
||||
@@ -173,9 +173,9 @@ void parsemessages(int cn, playerent *d, ucharbuf &p)
|
||||
BotManager.LetBotsUpdateStats();
|
||||
// End add by Rick
|
||||
};
|
||||
s_strcpy(d->name, text);
|
||||
s_strncpy(d->name, text, MAXNAMELEN+1);
|
||||
getstring(text, p);
|
||||
s_strcpy(d->team, text);
|
||||
s_strncpy(d->team, text, MAXTEAMLEN+1);
|
||||
d->skin = getint(p);
|
||||
d->lifesequence = getint(p);
|
||||
c2si = true;
|
||||
|
||||
@@ -355,6 +355,9 @@ struct dynent : physent // animated ent
|
||||
dynent() { reset(); loopi(2) { lastanimswitchtime[i] = -1; lastmodel[i] = NULL; }; };
|
||||
};
|
||||
|
||||
#define MAXNAMELEN 15
|
||||
#define MAXTEAMLEN 4
|
||||
|
||||
struct bounceent;
|
||||
|
||||
struct playerent : dynent
|
||||
|
||||
Reference in New Issue
Block a user