Fix start position was ignored
This commit is contained in:
parent
6c93056fd7
commit
7d7de33f0c
|
@ -56,7 +56,7 @@ void ACarlaGameMode::RestartPlayer(AController* NewPlayer)
|
|||
check(GameController != nullptr);
|
||||
APlayerStart *StartSpot = GameController->ChoosePlayerStart(UnOccupiedStartPoints);
|
||||
if (StartSpot != nullptr) {
|
||||
RestartPlayerAtPlayerStart(NewPlayer, UnOccupiedStartPoints[0u]);
|
||||
RestartPlayerAtPlayerStart(NewPlayer, StartSpot);
|
||||
RegisterPlayer(*NewPlayer);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue