mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-03-13 22:42:07 +00:00
- fixed 'Pause by <playername>' message in multiplayer
https://forum.zdoom.org/viewtopic.php?t=64765
This commit is contained in:
parent
c7dc4f0f0f
commit
0727f939dd
1 changed files with 2 additions and 2 deletions
|
@ -853,7 +853,6 @@ void D_Display ()
|
||||||
{
|
{
|
||||||
FTexture *tex;
|
FTexture *tex;
|
||||||
int x;
|
int x;
|
||||||
FString pstring = GStrings("TXT_BY");
|
|
||||||
|
|
||||||
tex = TexMan.GetTextureByName(gameinfo.PauseSign, true);
|
tex = TexMan.GetTextureByName(gameinfo.PauseSign, true);
|
||||||
x = (SCREENWIDTH - tex->GetDisplayWidth() * CleanXfac)/2 +
|
x = (SCREENWIDTH - tex->GetDisplayWidth() * CleanXfac)/2 +
|
||||||
|
@ -862,7 +861,8 @@ void D_Display ()
|
||||||
if (paused && multiplayer)
|
if (paused && multiplayer)
|
||||||
{
|
{
|
||||||
FFont *font = generic_ui? NewSmallFont : SmallFont;
|
FFont *font = generic_ui? NewSmallFont : SmallFont;
|
||||||
pstring << ' ' << players[paused - 1].userinfo.GetName();
|
FString pstring = GStrings("TXT_BY");
|
||||||
|
pstring.Substitute("%s", players[paused - 1].userinfo.GetName());
|
||||||
screen->DrawText(font, CR_RED,
|
screen->DrawText(font, CR_RED,
|
||||||
(screen->GetWidth() - font->StringWidth(pstring)*CleanXfac) / 2,
|
(screen->GetWidth() - font->StringWidth(pstring)*CleanXfac) / 2,
|
||||||
(tex->GetDisplayHeight() * CleanYfac) + 4, pstring, DTA_CleanNoMove, true, TAG_DONE);
|
(tex->GetDisplayHeight() * CleanYfac) + 4, pstring, DTA_CleanNoMove, true, TAG_DONE);
|
||||||
|
|
Loading…
Reference in a new issue