* Reverted Tempo temporary fix now that the proper one is in place.

* Updated to ZDoom r2685:
- Don't call M_NotifyNewSave() before closing the new savegame.
- Disallow negative read lengths in FileReader::Read().
- Make sure Tempo is initialized before creating SMFs.

git-svn-id: http://mancubus.net/svn/hosted/gzdoom/trunk@934 b0f79afe-0144-0410-b225-9a4edf0717df
This commit is contained in:
gez 2010-09-04 08:57:10 +00:00
parent dffac6a20b
commit eefd6ef0d1
5 changed files with 9 additions and 6 deletions

View file

@ -132,6 +132,8 @@ long FileReader::Seek (long offset, int origin)
long FileReader::Read (void *buffer, long len)
{
assert(len >= 0);
if (len <= 0) return 0;
if (FilePos + len > StartPos + Length)
{
len = Length - FilePos + StartPos;