mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 00:41:55 +00:00
Allow disabling level load text from within EVENT_GETLOADTILE
git-svn-id: https://svn.eduke32.com/eduke32@119 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
dbd7df89de
commit
9d147dcfaa
1 changed files with 15 additions and 3 deletions
|
@ -1348,7 +1348,7 @@ void waitforeverybody()
|
|||
|
||||
void dofrontscreens(char *statustext)
|
||||
{
|
||||
long i=0;
|
||||
long i=0,j;
|
||||
|
||||
if(ud.recstat != 2)
|
||||
{
|
||||
|
@ -1364,7 +1364,13 @@ void dofrontscreens(char *statustext)
|
|||
|
||||
SetGameVarID(g_iReturnVarID,LOADSCREEN, -1, -1);
|
||||
OnEvent(EVENT_GETLOADTILE, -1, -1, -1);
|
||||
rotatesprite(320<<15,200<<15,65536L,0,GetGameVarID(g_iReturnVarID, -1, -1),0,0,2+8+64,0,0,xdim-1,ydim-1);
|
||||
j = GetGameVarID(g_iReturnVarID, -1, -1);
|
||||
rotatesprite(320<<15,200<<15,65536L,0,j > MAXTILES-1?j-MAXTILES:j,0,0,2+8+64,0,0,xdim-1,ydim-1);
|
||||
if(j > MAXTILES-1)
|
||||
{
|
||||
nextpage();
|
||||
return;
|
||||
}
|
||||
if( boardfilename[0] != 0 && ud.level_number == 7 && ud.volume_number == 0 )
|
||||
{
|
||||
menutext(160,90,0,0,"ENTERING USER MAP");
|
||||
|
@ -1399,7 +1405,13 @@ void dofrontscreens(char *statustext)
|
|||
}
|
||||
SetGameVarID(g_iReturnVarID,LOADSCREEN, -1, -1);
|
||||
OnEvent(EVENT_GETLOADTILE, -1, -1, -1);
|
||||
rotatesprite(320<<15,200<<15,65536L,0,GetGameVarID(g_iReturnVarID, -1, -1),0,0,2+8+64,0,0,xdim-1,ydim-1);
|
||||
j = GetGameVarID(g_iReturnVarID, -1, -1);
|
||||
rotatesprite(320<<15,200<<15,65536L,0,j > MAXTILES-1?j-MAXTILES:j,0,0,2+8+64,0,0,xdim-1,ydim-1);
|
||||
if(j > MAXTILES-1)
|
||||
{
|
||||
nextpage();
|
||||
return;
|
||||
}
|
||||
menutext(160,105,0,0,"LOADING...");
|
||||
if (statustext) gametext(160,180,statustext,0,2+8+16);
|
||||
nextpage();
|
||||
|
|
Loading…
Reference in a new issue