- StorePingInfo fix car id=1

This commit is contained in:
Ilya Shurumov 2020-11-13 00:44:04 +06:00
parent ffbe556e72
commit cea22ccfb0

View File

@ -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;