Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Players are able to join a race without having a race car #1149

Merged
merged 5 commits into from
Oct 9, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions dGame/dComponents/RacingControlComponent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ void RacingControlComponent::OnPlayerLoaded(Entity* player) {
auto* playerInstance = dynamic_cast<Player*>(player);

playerInstance->SendToZone(m_MainWorld);

return;
}

Expand Down Expand Up @@ -99,7 +98,9 @@ void RacingControlComponent::LoadPlayerVehicle(Entity* player,

if (item == nullptr) {
Game::logger->Log("RacingControlComponent", "Failed to find item");

auto* playerInstance = dynamic_cast<Player*>(player);
EmosewaMC marked this conversation as resolved.
Show resolved Hide resolved
EmosewaMC marked this conversation as resolved.
Show resolved Hide resolved
m_LoadedPlayers--;
Tiernan-Alderman marked this conversation as resolved.
Show resolved Hide resolved
playerInstance->SendToZone(m_MainWorld);
return;
}

Expand Down