- Fixed typo in UMulManager

- Added array initialization to TAnimDataProvider
- Adjusted frmLogin
- Some code cleanups
This commit is contained in:
2009-12-08 22:17:39 +01:00
parent 06c9c2c507
commit 1759e0763c
8 changed files with 288 additions and 118 deletions

View File

@@ -69,16 +69,16 @@ type
property Unknown: LongInt read FUnknown write FUnknown;
end;
function GetAnimDataOffset(Block: Integer): Integer;
function GetAnimDataOffset(AID: Integer): Integer;
implementation
function GetAnimDataOffset(Block: Integer): Integer;
function GetAnimDataOffset(AID: Integer): Integer;
var
group, tile: Integer;
begin
group := Block div 8;
tile := Block mod 8;
group := AID div 8;
tile := AID mod 8;
Result := group * AnimDataGroupSize + 4 + tile * AnimDataSize;
end;