mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-24 21:21:04 +00:00
- fixed some deprecation warnings about 'level'.
This commit is contained in:
parent
84baa5bb4d
commit
73ea59179c
2 changed files with 6 additions and 6 deletions
|
@ -2765,7 +2765,7 @@ struct PlayerInfo native play // self is what internally is known as player_t
|
|||
return
|
||||
gamestate == GS_TITLELEVEL ||
|
||||
(cheats & CF_TOTALLYFROZEN) ||
|
||||
(level.frozen && timefreezer == 0);
|
||||
(mo && mo.Level.frozen && timefreezer == 0);
|
||||
}
|
||||
|
||||
void Uncrouch()
|
||||
|
|
|
@ -407,7 +407,7 @@ class StatusScreen abstract play version("2.5")
|
|||
//Added by mc
|
||||
if (deathmatch)
|
||||
{
|
||||
level.RemoveAllBots (consoleplayer != Net_Arbitrator);
|
||||
currentUILevel.RemoveAllBots (consoleplayer != Net_Arbitrator);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -467,7 +467,7 @@ class StatusScreen abstract play version("2.5")
|
|||
if (cnt == 0)
|
||||
{
|
||||
End();
|
||||
level.WorldDone();
|
||||
currentUILevel.WorldDone();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -483,7 +483,7 @@ class StatusScreen abstract play version("2.5")
|
|||
{
|
||||
// Last map in episode - there is no next location!
|
||||
End();
|
||||
level.WorldDone();
|
||||
currentUILevel.WorldDone();
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -614,7 +614,7 @@ class StatusScreen abstract play version("2.5")
|
|||
|
||||
virtual void StartMusic()
|
||||
{
|
||||
level.SetInterMusic(wbs.next);
|
||||
currentUILevel.SetInterMusic(wbs.next);
|
||||
}
|
||||
|
||||
//====================================================================
|
||||
|
@ -712,7 +712,7 @@ class StatusScreen abstract play version("2.5")
|
|||
Par = TexMan.CheckForTexture("WIPAR", TexMan.Type_MiscPatch); // "par"
|
||||
|
||||
// Use the local level structure which can be overridden by hubs
|
||||
lnametexts[0] = level.LevelName;
|
||||
lnametexts[0] = currentUILevel.LevelName;
|
||||
lnametexts[1] = wbstartstruct.nextname;
|
||||
|
||||
bg = InterBackground.Create(wbs);
|
||||
|
|
Loading…
Reference in a new issue