mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 17:14:59 +02:00
Merge remote-tracking branch 'upstream/master'
This commit is contained in:
commit
6ad12e15ed
3 changed files with 2 additions and 3 deletions
|
@ -25,7 +25,7 @@ int packFloatAngleToTwoByte(unsigned char* buffer, float angle) {
|
|||
}
|
||||
|
||||
int unpackFloatAngleFromTwoByte(uint16_t* byteAnglePointer, float* destinationPointer) {
|
||||
*destinationPointer = (*byteAnglePointer / std::numeric_limits<uint16_t>::max()) * 360.0 - 180;
|
||||
*destinationPointer = (*byteAnglePointer / (float) std::numeric_limits<uint16_t>::max()) * 360.0 - 180;
|
||||
return sizeof(uint16_t);
|
||||
}
|
||||
|
||||
|
|
|
@ -71,7 +71,6 @@ Agent::Agent(const Agent &otherAgent) {
|
|||
}
|
||||
|
||||
Agent& Agent::operator=(Agent otherAgent) {
|
||||
std::cout << "Agent swap constructor called on resize?\n";
|
||||
swap(*this, otherAgent);
|
||||
return *this;
|
||||
}
|
||||
|
|
|
@ -107,7 +107,7 @@ void AgentList::processBulkAgentData(sockaddr *senderAddress, unsigned char *pac
|
|||
bulkSendAgent->setLastRecvTimeUsecs(usecTimestampNow());
|
||||
}
|
||||
|
||||
unsigned char *startPosition = (unsigned char *)packetData;
|
||||
unsigned char *startPosition = packetData;
|
||||
unsigned char *currentPosition = startPosition + 1;
|
||||
unsigned char packetHolder[numBytesPerAgent + 1];
|
||||
|
||||
|
|
Loading…
Reference in a new issue