only adding as many players as were selected for the match

This commit is contained in:
devZoGok
2025-03-08 12:08:36 +02:00
parent 48c38e9ec9
commit 31aa7c44a6
2 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -57,7 +57,7 @@ namespace battleship{
AbstractAppState::onAttached();
Camera *cam = Root::getSingleton()->getCamera();
cam->setPosition(Map::getSingleton()->getSpawnPoint(playerId - 1) + Vector3(1, 1, 1) * configData::CAMERA_DISTANCE);
cam->setPosition(Map::getSingleton()->getSpawnPoint(playerId) + Vector3(1, 1, 1) * configData::CAMERA_DISTANCE);
cam->lookAt(Vector3(0, -1, -1).norm(), Vector3(0, 1, -1).norm());
mainPlayer = Game::getSingleton()->getPlayer(playerId);