--- oup/current/Global/RawList.pas 2007/04/01 16:44:29 149 +++ oup/current/Global/RawList.pas 2007/05/12 13:24:54 178 @@ -116,7 +116,7 @@ var datasize: Integer; begin SetLength(Result, 1); - if ConManager.Connection[ConnectionID].DataOS = DOS_MAC then + if ConManager.Connection[ConnectionID].DataOS in [DOS_MACBETA, DOS_MAC] then begin ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $10, 4, @datasize); ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $14, 4, @link); @@ -191,20 +191,26 @@ var templ: Integer; Data: TByteData; offset: Word; - frame_count: Byte; + frame_count: Integer; begin SetLength(Result, 13); ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $16C, 2, @frames); - {y-pos} + {x-z-pos} ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $0C, 4, @link); Result[0].SrcOffset := $0C; Result[0].RawAddr := link; - Result[0].RawSize := frames * 4; - {x-z-pos} + if link > 0 then + Result[0].RawSize := frames * 4 + else + Result[0].RawSize := 0; + {y-pos} ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $10, 4, @link); Result[1].SrcOffset := $10; Result[1].RawAddr := link; - Result[1].RawSize := frames * 8; + if link > 0 then + Result[1].RawSize := frames * 8 + else + Result[1].RawSize := 0; {attacks} ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $182, 1, @tempb); ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $14, 4, @link); @@ -222,7 +228,7 @@ begin ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $1C, 4, @link); Result[4].SrcOffset := $1C; Result[4].RawAddr := link; - Result[4].RawSize := tempb * 8; + Result[4].RawSize := tempb * 12; {shortcut} ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $185, 1, @tempb); ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $20, 4, @link);