mirror of
https://github.com/overte-org/overte.git
synced 2025-08-07 22:10:32 +02:00
CR feedback
This commit is contained in:
parent
4bdaf7589f
commit
4fd23a0cd9
5 changed files with 11 additions and 16 deletions
|
@ -235,7 +235,6 @@ int JurisdictionMap::packIntoMessage(unsigned char* destinationBuffer, int avail
|
|||
|
||||
// add the root jurisdiction
|
||||
if (_rootOctalCode) {
|
||||
// copy the
|
||||
int bytes = bytesRequiredForCodeLength(numberOfThreeBitSectionsInCode(_rootOctalCode));
|
||||
memcpy(destinationBuffer, &bytes, sizeof(bytes));
|
||||
destinationBuffer += sizeof(bytes);
|
||||
|
|
|
@ -39,11 +39,7 @@ bool JurisdictionSender::process() {
|
|||
bool continueProcessing = isStillRunning();
|
||||
|
||||
// call our ReceivedPacketProcessor base class process so we'll get any pending packets
|
||||
if (continueProcessing) {
|
||||
continueProcessing = ReceivedPacketProcessor::process();
|
||||
}
|
||||
|
||||
if (continueProcessing) {
|
||||
if (continueProcessing && (continueProcessing = ReceivedPacketProcessor::process())) {
|
||||
// add our packet to our own queue, then let the PacketSender class do the rest of the work.
|
||||
static unsigned char buffer[MAX_PACKET_SIZE];
|
||||
unsigned char* bufferOut = &buffer[0];
|
||||
|
|
|
@ -119,10 +119,11 @@ public:
|
|||
};
|
||||
|
||||
/// Returns details about items tracked by VoxelSceneStats
|
||||
/// \param
|
||||
/// \param Item item The item from the stats you're interested in.
|
||||
ItemInfo& getItemInfo(Item item) { return _ITEMS[item]; };
|
||||
|
||||
/// Returns a UI formatted value of an item tracked by VoxelSceneStats
|
||||
/// \param Item item The item from the stats you're interested in.
|
||||
char* getItemValue(Item item);
|
||||
|
||||
/// Returns OctCode for root node of the jurisdiction of this particular voxel server
|
||||
|
|
|
@ -510,9 +510,8 @@ int main(int argc, const char * argv[]) {
|
|||
NodeList* nodeList = NodeList::createInstance(NODE_TYPE_VOXEL_SERVER, listenPort);
|
||||
setvbuf(stdout, NULL, _IOLBF, 0);
|
||||
|
||||
const int numNodeTypes = 2;
|
||||
const NODE_TYPE nodeTypes[numNodeTypes] = { NODE_TYPE_AGENT, NODE_TYPE_ANIMATION_SERVER };
|
||||
NodeList::getInstance()->setNodeTypesOfInterest(&nodeTypes[0], numNodeTypes);
|
||||
const NODE_TYPE nodeTypes[] = { NODE_TYPE_AGENT, NODE_TYPE_ANIMATION_SERVER };
|
||||
NodeList::getInstance()->setNodeTypesOfInterest(&nodeTypes[0], sizeof(nodeTypes));
|
||||
|
||||
// Handle Local Domain testing with the --local command line
|
||||
const char* local = "--local";
|
||||
|
|
Loading…
Reference in a new issue