X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fshared%2Fxstreams.pas;h=36e73f96e45d24dd09afed6127c864b4a3a05b61;hb=38144a9b64580981ae76cd2e06e7c06bf0347e79;hp=346ee9edaa9a81e6b086a74923351ea2365b6bdd;hpb=3255b0825dd8a2db15ea04c21e34da5279cbaa5e;p=d2df-sdl.git diff --git a/src/shared/xstreams.pas b/src/shared/xstreams.pas index 346ee9e..36e73f9 100644 --- a/src/shared/xstreams.pas +++ b/src/shared/xstreams.pas @@ -1,9 +1,8 @@ -(* Copyright (C) DooM 2D:Forever Developers +(* Copyright (C) Doom 2D: Forever Developers * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. + * the Free Software Foundation, version 3 of the License ONLY. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -127,7 +126,7 @@ type end; // fixed memory chunk - TSFSMemoryChunkStream = class(TCustomMemoryStream) + TSFSMemoryChunkStream = class(TStream) private fFreeMem: Boolean; fMemBuf: PByte; @@ -558,7 +557,6 @@ begin left := fMemSize-fCurPos; if (left < 0) then raise XStreamError.Create('internal error in TSFSMemoryChunkStream (write)'); if (count > left) then count := left; - //writeln('mcs: writing ', count, ' bytes at ofs ', fCurPos, ' (total size is ', fMemSize, ')'); if (count > 0) then Move(buffer, (fMemBuf+fCurPos)^, count); Inc(fCurPos, count); result := count;