summaryrefslogtreecommitdiff
path: root/src/game/g_namelog.c
diff options
context:
space:
mode:
authorM. Kristall <mkpdev@gmail.com>2011-01-20 02:12:05 +0000
committerTim Angus <tim@ngus.net>2013-01-03 00:17:52 +0000
commit1f9ce343da30a20cff2659ca6a269f70d8bbebaa (patch)
treeb806bc2df342b0b1dab57b8dbe02c87f5d1154b7 /src/game/g_namelog.c
parentb4742563518b608a7c27066ebf64930963164515 (diff)
* Allow mute and denybuild to target players who are no longer connected
Diffstat (limited to 'src/game/g_namelog.c')
-rw-r--r--src/game/g_namelog.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/game/g_namelog.c b/src/game/g_namelog.c
index 1e5b7f4f..66136844 100644
--- a/src/game/g_namelog.c
+++ b/src/game/g_namelog.c
@@ -51,9 +51,15 @@ void G_namelog_connect( gclient_t *client )
n = BG_Alloc( sizeof( namelog_t ) );
strcpy( n->guid, client->pers.guid );
if( p )
+ {
p->next = n;
+ n->id = p->id + 1;
+ }
else
+ {
level.namelogs = n;
+ n->id = MAX_CLIENTS;
+ }
}
client->pers.namelog = n;
n->slot = client - level.clients;