History

cleanup of packet header constants

ZappoMan committed 13 years ago

Commit 74802831 parent e6a464711 files · +38 −23Browse files

Showing the changes to interface/src/VoxelSystem.cpp (1 of 11 files). Show all

Unified · Split

interface/src/VoxelSystem.cpp+3−3
@@ -113,15 +113,15 @@ void VoxelSystem::parseData(void *data, int size) { · 112 unmodified lines
113113 unsigned char *voxelData = (unsigned char *) data + 1;
114114
115115 switch(command) {
116− case 'V':
116+ case PACKET_HEADER_VOXEL_DATA:
117117 // ask the VoxelTree to read the bitstream into the tree
118118 tree->readBitstreamToTree(voxelData, size - 1);
119119 break;
120− case 'R':
120+ case PACKET_HEADER_ERASE_VOXEL:
121121 // ask the tree to read the "remove" bitstream
122122 tree->processRemoveVoxelBitstream((unsigned char*)data,size);
123123 break;
124− case 'Z':
124+ case PACKET_HEADER_Z_COMMAND:
125125
126126 // the Z command is a special command that allows the sender to send high level semantic
127127 // requests, like erase all, or add sphere scene, different receivers may handle these