summaryrefslogtreecommitdiff
path: root/src/game/g_admin.c
diff options
context:
space:
mode:
authorM. Kristall <mkpdev@gmail.com>2009-12-24 04:52:21 +0000
committerTim Angus <tim@ngus.net>2013-01-03 00:17:24 +0000
commitc80dd4291732ab9da54371f2a4b848d4353f99f0 (patch)
treee9e3d5d9e9159ad6462e8bc430013db739100ed4 /src/game/g_admin.c
parent5203e6a41dbe296102e1852b42dc2cdcd55b5408 (diff)
* Correct ban numbers reported by showbans
Diffstat (limited to 'src/game/g_admin.c')
-rw-r--r--src/game/g_admin.c4
1 files changed, 4 insertions, 0 deletions
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 );
}