Skip to content

Commit

Permalink
Fix error after downloading a pk3 using legacy protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
zturtleman committed May 18, 2018
1 parent dc29415 commit 9e775e9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
7 changes: 4 additions & 3 deletions README.md
Expand Up @@ -4,13 +4,14 @@

Differences from ioEF 1.38-rc1 (2011):

* Better compatibility with newer operating systems (from ioq3).
* VoIP uses Opus codec instead of Speex (from ioq3).
* Player origin rounding is compatible with the original QVMs.
* Fixed "read past end of server message" error after downloading a pk3 using EF 1.2 protocol (24).
* Network compatible with ioEF 1.37.
* Dedicated servers are listed on official Raven master server.
* Client and server use separate config files (from ioq3).
* Better compatibility with newer operating systems (from ioq3).
* VoIP uses Opus codec instead of Speex (from ioq3).
* Support for ioquake3's OpenGL2 renderer.
* Client and server use separate config files like ioq3.

Lilium Voyager code commits: [compare/upstream...master](https://github.com/zturtleman/lilium-voyager/compare/upstream...master)

Expand Down
6 changes: 5 additions & 1 deletion code/client/cl_parse.c
Expand Up @@ -615,7 +615,11 @@ void CL_ParseDownload ( msg_t *msg ) {
return;
}

MSG_ReadData(msg, data, size);
#ifdef ELITEFORCE
// check that size is more than 0 to avoid reading past end of server message
if (size)
#endif
MSG_ReadData(msg, data, size);

if((clc.downloadBlock & 0xFFFF) != block)
{
Expand Down

0 comments on commit 9e775e9

Please sign in to comment.