mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-08 08:43:40 +02:00
Merge pull request #785 from machinelevel/dev4
Disable hand receive logic to keep team from crashing while a bug is bei...
This commit is contained in:
commit
cc8c92c4e0
2 changed files with 7 additions and 2 deletions
|
@ -105,6 +105,9 @@ int HandData::encodeRemoteData(unsigned char* destinationBuffer) {
|
|||
size_t checkLength = destinationBuffer - startPosition;
|
||||
*destinationBuffer++ = (unsigned char)checkLength;
|
||||
|
||||
// just a double-check, while tracing a crash.
|
||||
// decodeRemoteData(destinationBuffer - (destinationBuffer - startPosition));
|
||||
|
||||
return destinationBuffer - startPosition;
|
||||
}
|
||||
|
||||
|
@ -157,8 +160,9 @@ int HandData::decodeRemoteData(unsigned char* sourceBuffer) {
|
|||
}
|
||||
|
||||
setRaveGloveActive((gloveFlags & GLOVE_FLAG_RAVE) != 0);
|
||||
setRaveGloveMode(effectsMode);
|
||||
|
||||
// This is disabled for crash tracing.
|
||||
// setRaveGloveMode(effectsMode);
|
||||
|
||||
// One byte for error checking safety.
|
||||
unsigned char requiredLength = (unsigned char)(sourceBuffer - startPosition);
|
||||
unsigned char checkLength = *sourceBuffer++;
|
||||
|
|
|
@ -44,6 +44,7 @@ enum RaveGloveEffectsMode
|
|||
class HandData {
|
||||
public:
|
||||
HandData(AvatarData* owningAvatar);
|
||||
virtual ~HandData() {}
|
||||
|
||||
// These methods return the positions in Leap-relative space.
|
||||
// To convert to world coordinates, use Hand::leapPositionToWorldPosition.
|
||||
|
|
Loading…
Reference in a new issue