mirror of
https://github.com/ZDoom/qzdoom-gpl.git
synced 2024-11-16 09:11:17 +00:00
- Fixed: menu_endgame showed no text during a netgame, nor did it block you from ending a netgame.
SVN r3791 (trunk)
This commit is contained in:
parent
97372c9c05
commit
56aeb85eee
1 changed files with 5 additions and 14 deletions
|
@ -466,19 +466,7 @@ IMPLEMENT_CLASS(DEndGameMenu)
|
||||||
|
|
||||||
DEndGameMenu::DEndGameMenu(bool playsound)
|
DEndGameMenu::DEndGameMenu(bool playsound)
|
||||||
{
|
{
|
||||||
int messageindex = gametic % gameinfo.quitmessages.Size();
|
Init(NULL, GStrings(netgame ? "NETEND" : "ENDGAME"), 0, playsound);
|
||||||
FString EndString = gameinfo.quitmessages[messageindex];
|
|
||||||
|
|
||||||
if (netgame)
|
|
||||||
{
|
|
||||||
EndString = GStrings("NETEND");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
EndString = GStrings("ENDGAME");
|
|
||||||
|
|
||||||
|
|
||||||
Init(NULL, EndString, 0, playsound);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//=============================================================================
|
//=============================================================================
|
||||||
|
@ -492,7 +480,10 @@ void DEndGameMenu::HandleResult(bool res)
|
||||||
if (res)
|
if (res)
|
||||||
{
|
{
|
||||||
M_ClearMenus ();
|
M_ClearMenus ();
|
||||||
D_StartTitle ();
|
if (!netgame)
|
||||||
|
{
|
||||||
|
D_StartTitle ();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue