Skip to content

Commit

Permalink
- fixed 'Pause by <playername>' message in multiplayer
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey-lysiuk committed May 25, 2019
1 parent 64ce71e commit d9da513
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/d_main.cpp
Expand Up @@ -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 +
Expand All @@ -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);
Expand Down

0 comments on commit d9da513

Please sign in to comment.