decoupled the winIDs from the telemetry data
hell yeah, brother!
This commit is contained in:
@@ -125,8 +125,8 @@ func (b *BeamNG) Subscribe(requestFields map[int16]telemetry.FieldID) {
|
||||
// we will add their dependencies and the primitives to a slice
|
||||
pendingBinds := make([]telemetry.FieldID, telemetry.MaxFields)
|
||||
|
||||
for winID, id := range requestFields {
|
||||
b.data.Values[id].IDs = append(b.data.Values[id].IDs, winID)
|
||||
for _, id := range requestFields {
|
||||
// b.data.Values[id].IDs = append(b.data.Values[id].IDs, winID)
|
||||
|
||||
switch id {
|
||||
case telemetry.RPMStateColour:
|
||||
|
||||
@@ -229,8 +229,8 @@ func (i *IRacing) Subscribe(requestFields map[int16]telemetry.FieldID) {
|
||||
// we will add their dependencies and the primitives to a slice
|
||||
pendingBinds := make([]telemetry.FieldID, 0, telemetry.MaxFields)
|
||||
|
||||
for winID, id := range requestFields {
|
||||
i.data.Values[id].IDs = append(i.data.Values[id].IDs, winID)
|
||||
for _, id := range requestFields {
|
||||
// i.data.Values[id].IDs = append(i.data.Values[id].IDs, winID)
|
||||
|
||||
switch id {
|
||||
case telemetry.RPMStateColour:
|
||||
|
||||
Reference in New Issue
Block a user