mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-11 15:21:48 +00:00
- fixed: The level number for a secret exit is 1-based, not 0-based as the internal map data.
Fixes #35.
This commit is contained in:
parent
c8cde7fb3b
commit
feffc7c5c2
1 changed files with 1 additions and 1 deletions
|
@ -1064,7 +1064,7 @@ bool setnextmap(bool checksecretexit)
|
||||||
{
|
{
|
||||||
if (ud.secretlevel > 0)
|
if (ud.secretlevel > 0)
|
||||||
{
|
{
|
||||||
int newlevnum = levelnum(volfromlevelnum(currentLevel->levelNumber), ud.secretlevel);
|
int newlevnum = levelnum(volfromlevelnum(currentLevel->levelNumber), ud.secretlevel-1);
|
||||||
map = FindMapByLevelNum(newlevnum);
|
map = FindMapByLevelNum(newlevnum);
|
||||||
if (map)
|
if (map)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue