Add fmt::format

This commit is contained in:
Jmgr 2021-05-20 19:32:28 +01:00 committed by Anders Jenbo
commit 0c27e756f7
19 changed files with 252 additions and 219 deletions

View file

@ -7,6 +7,8 @@
#include <SDL.h>
#include <config.h>
#include <fmt/format.h>
#include "DiabloUI/diabloui.h"
#include "diablo.h"
#include "dthread.h"
@ -860,7 +862,7 @@ void recv_plrinfo(int pnum, TCmdPlrInfoHdr *p, bool recv)
} else {
szEvent = _("Player '%s' (level %i) is already in the game");
}
EventPlrMsg(szEvent, plr[pnum]._pName, plr[pnum]._pLevel);
EventPlrMsg(fmt::format(szEvent, plr[pnum]._pName, plr[pnum]._pLevel).c_str());
LoadPlrGFX(pnum, PFILE_STAND);
SyncInitPlr(pnum);