Redesigned Persist Car to check if the player is already in the car they want to spawn, and just forward self::veh as if it was the vehicle spawned. (#2418)

This commit is contained in:
gir489
2023-11-16 08:15:21 -05:00
committed by GitHub
parent 3914ebee72
commit 3e99fd0ae1
2 changed files with 9 additions and 5 deletions

View File

@ -28,7 +28,7 @@ namespace big
{
g_notification_service->push_warning("PERSIST_CAR"_T.data(), "PERSIST_CAR_TO_MANY_SPAWNED"_T.data());
}
else if (g.persist_car.spawn_inside)
else if (g.persist_car.spawn_inside && self::veh != vehicle)
{
teleport::into_vehicle(vehicle);
}