Changeset 209 for oup/current/Global


Ignore:
Timestamp:
Jun 5, 2007, 12:07:29 AM (18 years ago)
Author:
alloc
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • oup/current/Global/RawList.pas

    r178 r209  
    200200  Result[0].SrcOffset := $0C;
    201201  Result[0].RawAddr   := link;
    202   if link > 0 then
    203     Result[0].RawSize := frames * 4
    204   else
    205     Result[0].RawSize := 0;
     202  Result[0].RawSize := frames * 4;
    206203  {y-pos}
    207204  ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $10, 4, @link);
    208205  Result[1].SrcOffset := $10;
    209206  Result[1].RawAddr   := link;
    210   if link > 0 then
    211     Result[1].RawSize := frames * 8
    212   else
    213     Result[1].RawSize := 0;
     207  Result[1].RawSize := frames * 8;
    214208  {attacks}
    215209  ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $182, 1, @tempb);
     
    240234  Result[6].SrcOffset := $24;
    241235  Result[6].RawAddr   := link;
    242   if link > 0 then
    243     Result[6].RawSize := 24
    244   else
    245     Result[6].RawSize := 0;
     236  Result[6].RawSize := 24;
    246237  {footstep}
    247238  ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $186, 1, @tempb);
     
    410401      Break;
    411402    end;
     403  if Length(Result) > 0 then
     404    for i := 0 to High(Result) do
     405      if Result[i].RawAddr = 0 then
     406        Result[i].RawSize := 0;
    412407end;
    413408
Note: See TracChangeset for help on using the changeset viewer.