--- oup/current/Global/RawList.pas 2007/05/02 13:19:40 173 +++ oup/current/Global/RawList.pas 2007/06/04 22:07:29 209 @@ -199,18 +199,12 @@ begin ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $0C, 4, @link); Result[0].SrcOffset := $0C; Result[0].RawAddr := link; - if link > 0 then - Result[0].RawSize := frames * 4 - else - Result[0].RawSize := 0; + Result[0].RawSize := frames * 4; {y-pos} ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $10, 4, @link); Result[1].SrcOffset := $10; Result[1].RawAddr := link; - if link > 0 then - Result[1].RawSize := frames * 8 - else - Result[1].RawSize := 0; + Result[1].RawSize := frames * 8; {attacks} ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $182, 1, @tempb); ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $14, 4, @link); @@ -239,10 +233,7 @@ begin ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $24, 4, @link); Result[6].SrcOffset := $24; Result[6].RawAddr := link; - if link > 0 then - Result[6].RawSize := 24 - else - Result[6].RawSize := 0; + Result[6].RawSize := 24; {footstep} ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $186, 1, @tempb); ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $28, 4, @link); @@ -409,6 +400,10 @@ begin Result := FRawListHandlers[i].Handler(ConnectionID, FileID); Break; end; + if Length(Result) > 0 then + for i := 0 to High(Result) do + if Result[i].RawAddr = 0 then + Result[i].RawSize := 0; end; procedure TRawLists.InsertRawListHandler(ext: String; needed: Boolean; handler: THandler);