fix: substr → resize en 4 llocs
This commit is contained in:
@@ -876,7 +876,7 @@ void MapEditor::updateStatusBarInfo() { // NOLINT(readability-function-cognitiv
|
||||
const auto& e = room_data_.enemies[selected_enemy_];
|
||||
std::string anim = e.animation_path;
|
||||
auto dot = anim.rfind('.');
|
||||
if (dot != std::string::npos) { anim = anim.substr(0, dot); }
|
||||
if (dot != std::string::npos) { anim.resize(dot); }
|
||||
|
||||
line2 = "enemy " + std::to_string(selected_enemy_) + ": " + anim + " " + e.color;
|
||||
line3 = "vx:" + std::to_string(static_cast<int>(e.vx)) +
|
||||
|
||||
Reference in New Issue
Block a user