Added completed quest sendback.

This commit is contained in:
Filip Maj 2022-02-20 12:06:48 -05:00
parent 306f4ef346
commit c677479a03
6 changed files with 35 additions and 24 deletions

View file

@ -176,11 +176,17 @@ namespace Meteor.Common
srcShiftIndx = 0;
destByteIndx++;
i += 8;
continue;
}
bool val = (Data[srcByteIndx] & (1 << srcShiftIndx)) != 0;
bool val = (Data[srcByteIndx] & (1 << srcShiftIndx++)) != 0;
curByte |= (byte)((val ? 1 : 0) << destShiftIndx++);
if (srcShiftIndx == 8)
{
srcShiftIndx = 0;
srcByteIndx++;
}
if (destShiftIndx == 8)
{
toReturn[destByteIndx++] = curByte;