Visual Studio refactoring
parent
82118c4e02
commit
a1ad7f6af0
|
@ -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());
|
||||||
|
|
Loading…
Reference in New Issue