From 12597e9f3f4c7e4dd2946a14efae0af081b2e876 Mon Sep 17 00:00:00 2001 From: Christopher Schwarz Date: Tue, 10 Nov 2009 19:12:21 +0000 Subject: * Fix a bug in listmaps (Rezyn) --- src/game/g_cmds.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') 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", -- cgit