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

https://forum.zdoom.org/viewtopic.php?t=64765

# Conflicts:
#	src/d_main.cpp
This commit is contained in:
alexey.lysiuk 2019-05-25 17:50:18 +03:00 committed by drfrag
parent dc18200339
commit 1b0d8391c4

View file

@ -914,7 +914,6 @@ void D_Display ()
{
FTexture *tex;
int x;
FString pstring = GStrings("TXT_BY");
tex = TexMan(gameinfo.PauseSign);
x = (SCREENWIDTH - tex->GetScaledWidth() * CleanXfac)/2 +
@ -922,7 +921,8 @@ void D_Display ()
screen->DrawTexture (tex, x, 4, DTA_CleanNoMove, true, TAG_DONE);
if (paused && multiplayer)
{
pstring << ' ' << players[paused - 1].userinfo.GetName();
FString pstring = GStrings("TXT_BY");
pstring.Substitute("%s", players[paused - 1].userinfo.GetName());
screen->DrawText(SmallFont, CR_RED,
(screen->GetWidth() - SmallFont->StringWidth(pstring)*CleanXfac) / 2,
(tex->GetScaledHeight() * CleanYfac) + 4, pstring, DTA_CleanNoMove, true, TAG_DONE);