mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-15 17:01:28 +00:00
Move the window title setting code to the beginning of enterlevel(), so that it updates before the loading screen is displayed rather than after
git-svn-id: https://svn.eduke32.com/eduke32@319 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
3584d01dcc
commit
28e6c029ce
1 changed files with 13 additions and 13 deletions
|
@ -1514,6 +1514,19 @@ int enterlevel(char g)
|
|||
if( (g&MODE_DEMO) == 0 && ud.recstat == 2)
|
||||
ud.recstat = 0;
|
||||
|
||||
if (VOLUMEALL) Bsprintf(tempbuf,HEAD2);
|
||||
else Bsprintf(tempbuf,HEAD);
|
||||
|
||||
if( boardfilename[0] != 0 && ud.m_level_number == 7 && ud.m_volume_number == 0 )
|
||||
{
|
||||
Bstrcpy(levname, boardfilename);
|
||||
Bsprintf(apptitle," - %s",levname);
|
||||
}
|
||||
else Bsprintf(apptitle," - %s",level_names[(ud.volume_number*11)+ud.level_number]);
|
||||
|
||||
Bstrcat(tempbuf,apptitle);
|
||||
wm_setapptitle(tempbuf);
|
||||
|
||||
FX_StopAllSounds();
|
||||
clearsoundlocks();
|
||||
FX_SetReverb(0);
|
||||
|
@ -1673,19 +1686,6 @@ int enterlevel(char g)
|
|||
//AddLog(g_szBuf);
|
||||
// variables are set by pointer...
|
||||
|
||||
if (VOLUMEALL) Bsprintf(tempbuf,HEAD2);
|
||||
else Bsprintf(tempbuf,HEAD);
|
||||
|
||||
if( boardfilename[0] != 0 && ud.m_level_number == 7 && ud.m_volume_number == 0 )
|
||||
{
|
||||
Bstrcpy(levname, boardfilename);
|
||||
Bsprintf(apptitle," - %s",levname);
|
||||
}
|
||||
else Bsprintf(apptitle," - %s",level_names[(ud.volume_number*11)+ud.level_number]);
|
||||
|
||||
Bstrcat(tempbuf,apptitle);
|
||||
wm_setapptitle(tempbuf);
|
||||
|
||||
OnEvent(EVENT_ENTERLEVEL, -1, -1, -1);
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue