mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +00:00
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:
parent
3665fde85b
commit
75d20d02c5
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue