- fixed 'Pause by <playername>' message in multiplayer

https://forum.zdoom.org/viewtopic.php?t=64765
This commit is contained in:
alexey.lysiuk 2019-05-25 17:50:18 +03:00
parent 64ce71eae2
commit d9da513f74

View file

@ -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);