From 42b2dcd27c5e3b4a4cd6869603c7e6e65161444c Mon Sep 17 00:00:00 2001 From: Vectozavr <60608292+vectozavr@users.noreply.github.com> Date: Sun, 17 Oct 2021 14:38:15 +0700 Subject: [PATCH] Code refactoring. --- Shooter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Shooter.cpp b/Shooter.cpp index ca85b9b..1055a98 100644 --- a/Shooter.cpp +++ b/Shooter.cpp @@ -228,7 +228,7 @@ void Shooter::spawnPlayer(sf::Uint16 id) { } void Shooter::removePlayer(sf::Uint16 id) { - std::string name = std::to_string(id) + "_Enemy"; + std::string name = "Enemy_" + std::to_string(id); world->removeBody(ObjectNameTag(name)); world->removeBody(ObjectNameTag(name + "_head")); world->removeBody(ObjectNameTag(name + "_eye1"));