From d9da513f74baa276d90016298bfc541a9f1c55cb Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Sat, 25 May 2019 17:50:18 +0300 Subject: [PATCH] - fixed 'Pause by ' message in multiplayer https://forum.zdoom.org/viewtopic.php?t=64765 --- src/d_main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/d_main.cpp b/src/d_main.cpp index 0b0c99688..f9db5fe0e 100644 --- a/src/d_main.cpp +++ b/src/d_main.cpp @@ -853,7 +853,6 @@ void D_Display () { FTexture *tex; int x; - FString pstring = GStrings("TXT_BY"); tex = TexMan.GetTextureByName(gameinfo.PauseSign, true); x = (SCREENWIDTH - tex->GetDisplayWidth() * CleanXfac)/2 + @@ -862,7 +861,8 @@ void D_Display () if (paused && multiplayer) { 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->GetWidth() - font->StringWidth(pstring)*CleanXfac) / 2, (tex->GetDisplayHeight() * CleanYfac) + 4, pstring, DTA_CleanNoMove, true, TAG_DONE);