From c9522fb740200ccef6230cec452c48efb31e5394 Mon Sep 17 00:00:00 2001 From: Mattes D Date: Thu, 11 May 2023 22:05:17 +0200 Subject: Removed all Printf-family functions from StringUtils. Replaced them with fmt::format calls, including changes to the format strings. Also changed the format strings to use FMT_STRING, so that the format is checked compile-time against the arguments. Also fixed code-style violations already present in the code. --- src/Mobs/MagmaCube.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Mobs/MagmaCube.cpp') diff --git a/src/Mobs/MagmaCube.cpp b/src/Mobs/MagmaCube.cpp index 45dbbc519..28bc63ef9 100644 --- a/src/Mobs/MagmaCube.cpp +++ b/src/Mobs/MagmaCube.cpp @@ -10,8 +10,8 @@ cMagmaCube::cMagmaCube(int a_Size) : Super( "MagmaCube", mtMagmaCube, - Printf("entity.%smagmacube.hurt", GetSizeName(a_Size).c_str()), - Printf("entity.%smagmacube.death", GetSizeName(a_Size).c_str()), + fmt::format(FMT_STRING("entity.{}magmacube.hurt"), GetSizeName(a_Size)), + fmt::format(FMT_STRING("entity.{}magmacube.death"), GetSizeName(a_Size)), "", 0.51f * a_Size, 0.51f * a_Size -- cgit v1.2.3