Fix bootmap not resetting properly after reload

This commit is contained in:
Gustaf Alhäll 2024-10-13 16:50:41 +02:00
parent 22ce859e65
commit 0b2202e5cb
2 changed files with 1 additions and 2 deletions

View file

@ -3549,8 +3549,6 @@ void readmaincfg(MYFILE *f)
char *tmp; char *tmp;
INT32 value; INT32 value;
bootmap = 0; // reset bootmap so we don't warp to the wrong map if another maincfg had set this before
do do
{ {
if (myfgets(s, MAXLINELEN, f)) if (myfgets(s, MAXLINELEN, f))

View file

@ -196,6 +196,7 @@ static void DEH_LoadDehackedFile(MYFILE *f, boolean mainfile)
deh_num_warning = 0; deh_num_warning = 0;
bootmap = 0;
gamedataadded = titlechanged = introchanged = false; gamedataadded = titlechanged = introchanged = false;
// it doesn't test the version of SRB2 and version of dehacked file // it doesn't test the version of SRB2 and version of dehacked file