mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-02-13 15:11:46 +00:00
- set currentLevel before calling engineLoadBoard.
This is needed if the compatibility patcher needs to alter mapinfo data.
This commit is contained in:
parent
a40d036623
commit
9a8ee00aec
2 changed files with 2 additions and 2 deletions
|
@ -944,9 +944,9 @@ static int LoadTheMap(MapRecord *mi, struct player_struct *p, int gamemode)
|
||||||
I_Error("Cannot load user maps with shareware version!\n");
|
I_Error("Cannot load user maps with shareware version!\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
currentLevel = mi;
|
||||||
engineLoadBoard(mi->fileName, isShareware(), &p->pos, &lbang, &p->cursectnum);
|
engineLoadBoard(mi->fileName, isShareware(), &p->pos, &lbang, &p->cursectnum);
|
||||||
|
|
||||||
currentLevel = mi;
|
|
||||||
SECRET_SetMapName(mi->DisplayName(), mi->name);
|
SECRET_SetMapName(mi->DisplayName(), mi->name);
|
||||||
STAT_NewLevel(mi->fileName);
|
STAT_NewLevel(mi->fileName);
|
||||||
|
|
||||||
|
|
|
@ -321,8 +321,8 @@ void InitLevel(MapRecord *maprec)
|
||||||
}
|
}
|
||||||
|
|
||||||
int16_t ang;
|
int16_t ang;
|
||||||
engineLoadBoard(maprec->fileName, SW_SHAREWARE ? 1 : 0, &Player[0].pos, &ang, &Player[0].cursectnum);
|
|
||||||
currentLevel = maprec;
|
currentLevel = maprec;
|
||||||
|
engineLoadBoard(maprec->fileName, SW_SHAREWARE ? 1 : 0, &Player[0].pos, &ang, &Player[0].cursectnum);
|
||||||
|
|
||||||
SECRET_SetMapName(currentLevel->DisplayName(), currentLevel->name);
|
SECRET_SetMapName(currentLevel->DisplayName(), currentLevel->name);
|
||||||
STAT_NewLevel(currentLevel->fileName);
|
STAT_NewLevel(currentLevel->fileName);
|
||||||
|
|
Loading…
Reference in a new issue