diff options
author | M. Kristall <mkpdev@gmail.com> | 2010-06-08 05:33:01 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-03 00:17:38 +0000 |
commit | 9e8655d267746c872e942fc186db5c57a421f490 (patch) | |
tree | 242da3dcccc0c6c9132949e85977c0890dea7de9 | |
parent | 909efe34db267ddc3fbd55d17bf0a579fa735d18 (diff) |
* (bug 4655) Ban # under showbans is incorrect
-rw-r--r-- | src/game/g_admin.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/g_admin.c b/src/game/g_admin.c index 4318e667..4ad32254 100644 --- a/src/game/g_admin.c +++ b/src/game/g_admin.c @@ -2303,7 +2303,7 @@ qboolean G_admin_showbans( gentity_t *ent ) ADMBP_begin(); for( i = 0, ban = g_admin_bans; i < start && ban; i++, ban = ban->next ); - for( count = 0; count < MAX_ADMIN_SHOWBANS && ban; ban = ban->next ) + for( count = 0; count < MAX_ADMIN_SHOWBANS && ban; i++, ban = ban->next ) { if( ban->expires != 0 && ban->expires <= t ) continue; @@ -2348,7 +2348,7 @@ qboolean G_admin_showbans( gentity_t *ent ) ADMBP( va( "%4i %*s^7 %-15s %-8s %*s^7 %-10s\n \\__ %s\n", - ( count + start ), + i, max_name + colorlen1, ban->name, ban->ip.str, |