mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-12 11:10:39 +00:00
Add support for E0LXY to game defs music token
git-svn-id: https://svn.eduke32.com/eduke32@7687 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
ecf990253b
commit
5fc9868c6a
1 changed files with 7 additions and 1 deletions
|
@ -543,7 +543,13 @@ static inline int G_GetMusicIdx(const char *str)
|
|||
if (numMatches != 4 || Btoupper(b1) != 'E' || Btoupper(b2) != 'L')
|
||||
return -1;
|
||||
|
||||
if ((unsigned)--lev >= MAXLEVELS || (unsigned)--ep >= MAXVOLUMES)
|
||||
if ((unsigned)--lev >= MAXLEVELS)
|
||||
return -2;
|
||||
|
||||
if (ep == 0)
|
||||
return (MAXVOLUMES * MAXLEVELS) + lev;
|
||||
|
||||
if ((unsigned)--ep >= MAXVOLUMES)
|
||||
return -2;
|
||||
|
||||
return (ep * MAXLEVELS) + lev;
|
||||
|
|
Loading…
Reference in a new issue