mirror of
https://github.com/OpenDriver2/REDRIVER2.git
synced 2024-11-26 04:12:34 +01:00
- StorePingInfo fix car id=1
This commit is contained in:
parent
ffbe556e72
commit
cea22ccfb0
@ -675,6 +675,10 @@ char GetPingInfo(char *cookieCount)
|
||||
|
||||
PingBufferPos++;
|
||||
}
|
||||
else
|
||||
{
|
||||
printInfo("-1 frame!\n");
|
||||
}
|
||||
|
||||
return retCarId;
|
||||
}
|
||||
@ -694,7 +698,12 @@ int StorePingInfo(int cookieCount, int carId)
|
||||
{
|
||||
packet = &PingBuffer[PingBufferPos++];
|
||||
packet->frame = (CameraCnt - frameStart & 0xffffU);
|
||||
packet->carId = carId;
|
||||
|
||||
if(carId == 1)
|
||||
packet->carId = MAX_CARS-1;
|
||||
else
|
||||
packet->carId = carId;
|
||||
|
||||
packet->cookieCount = cookieCount;
|
||||
|
||||
return 1;
|
||||
|
Loading…
Reference in New Issue
Block a user