From c80dd4291732ab9da54371f2a4b848d4353f99f0 Mon Sep 17 00:00:00 2001 From: "M. Kristall" Date: Thu, 24 Dec 2009 04:52:21 +0000 Subject: * Correct ban numbers reported by showbans --- src/game/g_admin.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/game') diff --git a/src/game/g_admin.c b/src/game/g_admin.c index 300e551c..f98750ff 100644 --- a/src/game/g_admin.c +++ b/src/game/g_admin.c @@ -2315,7 +2315,11 @@ qboolean G_admin_showbans( gentity_t *ent ) if( start > 0 ) start--; else if( start < 0 ) + { start = found + start; + if( start < 0 ) + start = 0; + } else ipmatch = G_AddressParse( filter, &ipa, &neta ); } -- cgit