Code refactoring.

master
Vectozavr 2021-10-17 14:38:15 +07:00
parent a6efdc71de
commit 42b2dcd27c
1 changed files with 1 additions and 1 deletions

View File

@ -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"));