diff options
author | M. Kristall <mkpdev@gmail.com> | 2009-12-24 04:52:21 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-03 00:17:24 +0000 |
commit | c80dd4291732ab9da54371f2a4b848d4353f99f0 (patch) | |
tree | e9e3d5d9e9159ad6462e8bc430013db739100ed4 | |
parent | 5203e6a41dbe296102e1852b42dc2cdcd55b5408 (diff) |
* Correct ban numbers reported by showbans
-rw-r--r-- | src/game/g_admin.c | 4 |
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 ); } |