mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-02-20 18:42:17 +00:00
- 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:
parent
dc18200339
commit
1b0d8391c4
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue