Fixed a bug with the HasPitspeed endpoint

This commit is contained in:
2026-09-16 19:42:35 +01:00
parent 861a76164b
commit d0eb54e6c3
+1 -1
View File
@@ -303,7 +303,7 @@ func (sdk *BeamNGSDK) HasHandbrakeLight() bool {
// HasPitspeed reports whether a pit speed limitr is available
// NOTE: this may not be used in BeamNG.drive, haven't checked yet
func (sdk *BeamNGSDK) HasPitspeed() bool {
return sdk.Data.DashLights&DL_HANDBRAKE != 0
return sdk.Data.DashLights&DL_PITSPEED != 0
}
// HasTractionControlLight reports whether a traction control light is available