summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristopher Schwarz <lakitu7@gmail.com>2009-11-10 19:12:21 +0000
committerTim Angus <tim@ngus.net>2013-01-03 00:17:18 +0000
commit12597e9f3f4c7e4dd2946a14efae0af081b2e876 (patch)
tree73cc93fe81c24163c2013e7e327cf88f87d97ba2 /src
parenta1395a3c1a640777c60f93ec3953a061a64143c3 (diff)
* Fix a bug in listmaps (Rezyn)
Diffstat (limited to 'src')
-rw-r--r--src/game/g_cmds.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/game/g_cmds.c b/src/game/g_cmds.c
index 2d4a2344..1a749621 100644
--- a/src/game/g_cmds.c
+++ b/src/game/g_cmds.c
@@ -2834,8 +2834,11 @@ void Cmd_ListMaps_f( gentity_t *ent )
trap_Argv( 2, lp, sizeof( lp ) );
page = atoi( lp );
}
+
if( page > 0 )
page--;
+ else if( page < 0 )
+ page = 0;
}
numFiles = trap_FS_GetFileList( "maps/", ".bsp",