ViewVC Help
View File | Revision Log | View Changeset | Root Listing
root/Oni2/oup/current/Global/RawList.pas
(Generate patch)

Comparing oup/current/Global/RawList.pas (file contents):
Revision 147 by alloc, Sun Apr 1 16:15:47 2007 UTC vs.
Revision 169 by alloc, Tue Apr 3 15:43:53 2007 UTC

# Line 155 | Line 155 | begin
155      Data := nil;
156      TAccess_OniArchive(ConManager.Connection[ConnectionID]).LoadRawOffset(
157            False, baselink, lastlink + 1024, Data);
158 +    Data.Seek(lastlink, soFromBeginning);
159  
160      foundzeros := 0;
161      repeat
# Line 190 | Line 191 | var
191    templ:  Integer;
192    Data:   TByteData;
193    offset: Word;
194 <  frame_count: Byte;
194 >  frame_count: Integer;
195   begin
196    SetLength(Result, 13);
197    ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $16C, 2, @frames);
# Line 203 | Line 204 | begin
204    ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $10, 4, @link);
205    Result[1].SrcOffset := $10;
206    Result[1].RawAddr   := link;
207 <  Result[1].RawSize   := frames * 8;
207 >  if link > 0 then
208 >    Result[1].RawSize := frames * 8
209 >  else
210 >    Result[1].RawSize := 0;
211    {attacks}
212    ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $182, 1, @tempb);
213    ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $14, 4, @link);
# Line 221 | Line 225 | begin
225    ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $1C, 4, @link);
226    Result[4].SrcOffset := $1C;
227    Result[4].RawAddr   := link;
228 <  Result[4].RawSize   := tempb * 8;
228 >  Result[4].RawSize   := tempb * 12;
229    {shortcut}
230    ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $185, 1, @tempb);
231    ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $20, 4, @link);

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)