diff options
Diffstat (limited to 'src/qcommon/msg.c')
-rw-r--r-- | src/qcommon/msg.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/qcommon/msg.c b/src/qcommon/msg.c index 47fbc2dc..d98b6a78 100644 --- a/src/qcommon/msg.c +++ b/src/qcommon/msg.c @@ -390,6 +390,17 @@ int MSG_ReadByte( msg_t *msg ) { return c; } +int MSG_LookaheadByte( msg_t *msg ) { + const int bloc = Huff_getBloc(); + const int readcount = msg->readcount; + const int bit = msg->bit; + int c = MSG_ReadByte(msg); + Huff_setBloc(bloc); + msg->readcount = readcount; + msg->bit = bit; + return c; +} + int MSG_ReadShort( msg_t *msg ) { int c; |