From 75d20d02c5d781ea02f102f1fed89d3b0daebfbc Mon Sep 17 00:00:00 2001 From: helixhorned Date: Sat, 16 Feb 2013 18:53:30 +0000 Subject: [PATCH] Reduce volume number modulo MAXVOLUMES for -v command line option. git-svn-id: https://svn.eduke32.com/eduke32@3492 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/source/game.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/polymer/eduke32/source/game.c b/polymer/eduke32/source/game.c index 2147bc5fc..7ed1f5952 100644 --- a/polymer/eduke32/source/game.c +++ b/polymer/eduke32/source/game.c @@ -9227,7 +9227,7 @@ static void G_CheckCommandLine(int32_t argc, const char **argv) case 'v': c++; ud.warp_on = 1; - ud.m_volume_number = ud.volume_number = Batoi(c)-1; + ud.m_volume_number = ud.volume_number = (Batoi(c)-1)%MAXVOLUMES; break; case 'w': ud.coords = 1;