stains are multiplicative instead of additive
get rid of infokey usage in cl_ignore reduce sw stainmaps from int to unsigned char git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1657 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
79d122b3cf
commit
bc44aaf54b
4 changed files with 46 additions and 78 deletions
|
@ -63,7 +63,7 @@ int Player_NametoSlot(char *name) {
|
|||
int i;
|
||||
|
||||
for (i = 0; i < MAX_CLIENTS; i++) {
|
||||
if (cl.players[i].name[0] && !strncmp(Info_ValueForKey(cl.players[i].userinfo, "name"), name, 31))
|
||||
if (cl.players[i].name[0] && !strncmp(cl.players[i].name, name, MAX_SCOREBOARDNAME - 1))
|
||||
return i;
|
||||
}
|
||||
return PLAYER_NAME_NOMATCH;
|
||||
|
@ -74,7 +74,7 @@ int Player_SlottoId (int slot) {
|
|||
}
|
||||
|
||||
char *Player_MyName (void) {
|
||||
return Info_ValueForKey(cls.demoplayback ? cls.userinfo : cl.players[cl.playernum[0]].userinfo, "name");
|
||||
return cl.players[cl.playernum[0]].name;
|
||||
}
|
||||
|
||||
|
||||
|
@ -395,7 +395,7 @@ void Ignore_Flood_Add(char *s) {
|
|||
|
||||
qboolean Ignore_Message(char *s, int flags, int offset) {
|
||||
int slot, i, p, q, len;
|
||||
char name[32];
|
||||
char name[MAX_SCOREBOARDNAME];
|
||||
|
||||
if (!ignore_mode.value && (flags & 2))
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue