*** 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:
Lee Salzman
2006-11-16 20:01:26 +00:00
parent e020d3445c
commit 635fcead0a
3 changed files with 7 additions and 4 deletions
+2 -2
View File
@@ -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);
};
+2 -2
View File
@@ -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;
+3
View File
@@ -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