199 |
|
ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $0C, 4, @link); |
200 |
|
Result[0].SrcOffset := $0C; |
201 |
|
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; |
203 |
|
{y-pos} |
204 |
|
ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $10, 4, @link); |
205 |
|
Result[1].SrcOffset := $10; |
206 |
|
Result[1].RawAddr := link; |
207 |
< |
if link > 0 then |
211 |
< |
Result[1].RawSize := frames * 8 |
212 |
< |
else |
213 |
< |
Result[1].RawSize := 0; |
207 |
> |
Result[1].RawSize := frames * 8; |
208 |
|
{attacks} |
209 |
|
ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $182, 1, @tempb); |
210 |
|
ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $14, 4, @link); |
233 |
|
ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $24, 4, @link); |
234 |
|
Result[6].SrcOffset := $24; |
235 |
|
Result[6].RawAddr := link; |
236 |
< |
if link > 0 then |
243 |
< |
Result[6].RawSize := 24 |
244 |
< |
else |
245 |
< |
Result[6].RawSize := 0; |
236 |
> |
Result[6].RawSize := 24; |
237 |
|
{footstep} |
238 |
|
ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $186, 1, @tempb); |
239 |
|
ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $28, 4, @link); |
400 |
|
Result := FRawListHandlers[i].Handler(ConnectionID, FileID); |
401 |
|
Break; |
402 |
|
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; |
407 |
|
end; |
408 |
|
|
409 |
|
procedure TRawLists.InsertRawListHandler(ext: String; needed: Boolean; handler: THandler); |