mirror of
https://github.com/IS1DI/x0gp.git
synced 2026-07-16 20:47:55 +00:00
removed device_id from all entities except car. Replaced with car_id . Car -> device_id
This commit is contained in:
@@ -547,8 +547,15 @@ func (r *Runner) createLive(status lobby.RaceStatus, idx int) (lobby.RaceMeta, e
|
||||
continue
|
||||
}
|
||||
r.lb.SetDriverProfile(d.ID, d.Nickname, "", d.ClanID, d.ClanTag)
|
||||
devID := i
|
||||
_ = r.lb.SelectDevice(d.ID, &devID)
|
||||
cars := []string{
|
||||
"f1-2024-redbull-rb20",
|
||||
"f1-2024-ferrari-sf24",
|
||||
"f1-2024-mclaren-mcl38",
|
||||
"f1-2024-mercedes-w15",
|
||||
"f1-2024-astonmartin-amr24",
|
||||
}
|
||||
carID := cars[i%len(cars)]
|
||||
_ = r.lb.SelectCar(d.ID, &carID)
|
||||
if err := r.lb.AddDriverToRace(d.ID, meta.ID); err != nil {
|
||||
// ignore: race may be at capacity
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user