Reduce volume number modulo MAXVOLUMES for -v command line option.

git-svn-id: https://svn.eduke32.com/eduke32@3492 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
helixhorned 2013-02-16 18:53:30 +00:00
parent 3665fde85b
commit 75d20d02c5

View file

@ -9227,7 +9227,7 @@ static void G_CheckCommandLine(int32_t argc, const char **argv)
case 'v': case 'v':
c++; c++;
ud.warp_on = 1; 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; break;
case 'w': case 'w':
ud.coords = 1; ud.coords = 1;