diff options
author | Andrey Nazarov <skuller@skuller.net> | 2011-04-28 11:24:54 +0400 |
---|---|---|
committer | Andrey Nazarov <skuller@skuller.net> | 2011-04-28 11:24:54 +0400 |
commit | 2105f81f9de77901f282d9f04e5859394398b748 (patch) | |
tree | 4af797a186cc8e679df5ada13e4729c19e7e0545 /src/cl_parse.c | |
parent | e3cea83f9ff7d393c514afb16674d24c0f394bca (diff) |
Don't fail with ‘bad fov’ unless frame is valid.
Diffstat (limited to 'src/cl_parse.c')
-rw-r--r-- | src/cl_parse.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/cl_parse.c b/src/cl_parse.c index d88d842..55806c8 100644 --- a/src/cl_parse.c +++ b/src/cl_parse.c @@ -336,10 +336,6 @@ static void CL_ParseFrame( int extrabits ) { #endif frame.clientNum = cl.clientNum; } - if( !frame.ps.fov ) { - // fail out early to prevent spurious errors later - Com_Error( ERR_DROP, "%s: bad fov", __func__ ); - } // parse packetentities if( cls.serverProtocol <= PROTOCOL_VERSION_DEFAULT ) { @@ -372,6 +368,11 @@ static void CL_ParseFrame( int extrabits ) { return; // do not change anything } + if( !frame.ps.fov ) { + // fail out early to prevent spurious errors later + Com_Error( ERR_DROP, "%s: bad fov", __func__ ); + } + cl.oldframe = cl.frame; cl.frame = frame; |