*Update to Mangos 6955.

--HG--
branch : trunk
This commit is contained in:
megamage
2008-12-27 11:39:40 -06:00
parent 8a337e26c5
commit ae5e329321
17 changed files with 90 additions and 226 deletions
+26
View File
@@ -243,6 +243,32 @@ class ByteBuffer
_rpos += len;
}
bool readPackGUID(uint64& guid)
{
if(rpos()+1 > size())
return false;
guid = 0;
uint8 guidmark=0;
(*this) >> guidmark;
for(int i=0;i<8;i++)
{
if(guidmark & (uint8(1) << i))
{
if(rpos()+1 > size())
return false;
uint8 bit;
(*this) >> bit;
guid |= (uint64(bit) << (i*8));
}
}
return true;
}
const uint8 *contents() const { return &_storage[0]; }
size_t size() const { return _storage.size(); }
+1 -1
View File
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "6949"
#define REVISION_NR "6955"
#endif // __REVISION_NR_H__