SVN r191 (trunk)
This commit is contained in:
parent
6e198e034b
commit
d99f5b4b99
7 changed files with 165 additions and 104 deletions
|
|
@ -742,6 +742,8 @@ static void CalcPlane (SlopeWork &slope, secplane_t &plane)
|
|||
//
|
||||
// Decrypt
|
||||
//
|
||||
// Note that this is different from the general RFF encryption.
|
||||
//
|
||||
//==========================================================================
|
||||
|
||||
static void Decrypt (void *to_, const void *from_, int len, int key)
|
||||
|
|
@ -749,13 +751,9 @@ static void Decrypt (void *to_, const void *from_, int len, int key)
|
|||
BYTE *to = (BYTE *)to_;
|
||||
const BYTE *from = (const BYTE *)from_;
|
||||
|
||||
while (len > 0)
|
||||
for (int i = 0; i < len; ++i, ++key)
|
||||
{
|
||||
*to = *from ^ key;
|
||||
to++;
|
||||
from++;
|
||||
key++;
|
||||
len--;
|
||||
to[i] = from[i] ^ key;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue