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 160 by alloc, Mon Apr 2 01:04:52 2007 UTC vs.
Revision 169 by alloc, Tue Apr 3 15:43:53 2007 UTC

# Line 191 | 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 204 | 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 222 | 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   := 12;
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)