Visual Studio refactoring

master
Vectozavr 2021-11-01 13:47:51 +07:00
parent 82118c4e02
commit a1ad7f6af0
1 changed files with 4 additions and 0 deletions

View File

@ -117,6 +117,10 @@ void ShooterClient::processCustomPacket(sf::Packet &packet) {
_player->addDeath(); _player->addDeath();
auto camera = _player->attached(ObjectNameTag("Camera")); auto camera = _player->attached(ObjectNameTag("Camera"));
if(camera == nullptr) {
break;
}
_player->unattach(ObjectNameTag("Camera")); _player->unattach(ObjectNameTag("Camera"));
_player->translateToPoint(Vec3D{10000}); _player->translateToPoint(Vec3D{10000});
Vec2D cameraOrientation(camera->angleLeftUpLookAt().x(), _player->angle().y()); Vec2D cameraOrientation(camera->angleLeftUpLookAt().x(), _player->angle().y());