1
0
mirror of https://github.com/lidgren/lidgren-network-gen3.git synced 2026-05-15 22:56:30 +09:00

Logging error instead of throwing exception on network thread in RELEASE

Removed superflous break
Added new keyword to ReadByte() - not optimal, but it will have to do for now
This commit is contained in:
lidgren
2010-08-10 11:21:56 +00:00
parent a5ab4ab485
commit 04b7647bfb
3 changed files with 31 additions and 7 deletions

View File

@@ -75,7 +75,7 @@ namespace Lidgren.Network
//
// 8 bit
//
public byte ReadByte()
public new byte ReadByte()
{
NetException.Assert(m_bitLength - m_readPosition >= 8, c_readOverflowError);
byte retval = NetBitWriter.ReadByte(m_data, 8, m_readPosition);
@@ -83,6 +83,7 @@ namespace Lidgren.Network
return retval;
}
[CLSCompliant(false)]
public sbyte ReadSByte()
{