feat: Bump standard to 20 (#1376)

* Bump to 20

* fix warnings and errors

* thanks RakNet
This commit is contained in:
David Markowitz
2024-01-01 23:53:00 -08:00
committed by GitHub
parent 85672e060a
commit 1941679d27
8 changed files with 13 additions and 11 deletions

View File

@@ -312,7 +312,7 @@ void RacingControlComponent::OnRequestDie(Entity* player) {
}
// Respawn the player in 2 seconds, as was done in live. Not sure if this value is in a setting somewhere else...
vehicle->AddCallbackTimer(2.0f, [=]() {
vehicle->AddCallbackTimer(2.0f, [=, this]() {
if (!vehicle || !this->m_Parent) return;
GameMessages::SendRacingResetPlayerToLastReset(
m_Parent->GetObjectID(), racingPlayer.playerID,