diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-06-27 20:23:44 +1000 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-06-27 20:23:44 +1000 |
commit | 332983c97b7a729c4dc5f19aa9ee4a22c420f7d8 (patch) | |
tree | fd9c441b796b522bdd5c7f8fbd32f51b8eff2a28 /source/game/StarProjectile.cpp | |
parent | 14b9689b6d4f4ad5276c88130dc6e449bedc0709 (diff) |
The Formatting String Catastrophe
Diffstat (limited to 'source/game/StarProjectile.cpp')
-rw-r--r-- | source/game/StarProjectile.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/game/StarProjectile.cpp b/source/game/StarProjectile.cpp index 698428b..ad92883 100644 --- a/source/game/StarProjectile.cpp +++ b/source/game/StarProjectile.cpp @@ -530,7 +530,7 @@ void Projectile::setFrame(int frame) { } String Projectile::drawableFrame() { - return strf("%s:%d%s", m_config->image, m_frame, m_imageDirectives); + return strf("{}:{}{}", m_config->image, m_frame, m_imageDirectives); } bool Projectile::ephemeral() const { @@ -580,7 +580,7 @@ void Projectile::processAction(Json const& action) { List<Vec2I> openSpaces = world()->findEmptyTiles(m_lastNonCollidingTile, parameters.getInt("radius", 2), totalDrops); if (openSpaces.size() < totalDrops) - Logger::debug("Couldn't find a place for all the tile drops. %d drops requested, %d spaces found.", totalDrops, openSpaces.size()); + Logger::debug("Couldn't find a place for all the tile drops. {} drops requested, {} spaces found.", totalDrops, openSpaces.size()); bool allowEntityOverlap = parameters.getBool("allowEntityOverlap", true); @@ -842,7 +842,7 @@ void Projectile::processAction(Json const& action) { processAction(Root::singleton().assets()->json(parameters.getString("file"))); } else { - throw StarException(strf("Unknown projectile reap command %s", command)); + throw StarException(strf("Unknown projectile reap command {}", command)); } } |