- Fixed static tiles with hue 1 using the wrong cache id
- Commented some debug messages
This commit is contained in:
parent
ca8f47d2a9
commit
eb62553f5c
|
@ -384,7 +384,7 @@ begin
|
||||||
end else
|
end else
|
||||||
begin
|
begin
|
||||||
Result := nil;
|
Result := nil;
|
||||||
id := ATileID or ((AHue.ID and $3FFF) shl 16) or (Byte(APartialHue) shl 30);
|
id := ATileID or (((AHue.ID + 1) and $3FFF) shl 16) or (Byte(APartialHue) shl 30);
|
||||||
|
|
||||||
if FUseAnims and (ATileID >= $4000) and (tdfAnimation in
|
if FUseAnims and (ATileID >= $4000) and (tdfAnimation in
|
||||||
ResMan.Tiledata.StaticTiles[ATileID - $4000].Flags) then
|
ResMan.Tiledata.StaticTiles[ATileID - $4000].Flags) then
|
||||||
|
|
|
@ -823,7 +823,7 @@ object frmMain: TfrmMain
|
||||||
item
|
item
|
||||||
Position = 1
|
Position = 1
|
||||||
Text = 'Name'
|
Text = 'Name'
|
||||||
Width = 131
|
Width = 135
|
||||||
end>
|
end>
|
||||||
Header.DefaultHeight = 17
|
Header.DefaultHeight = 17
|
||||||
Header.Options = [hoAutoResize, hoColumnResize, hoDrag, hoVisible]
|
Header.Options = [hoAutoResize, hoColumnResize, hoDrag, hoVisible]
|
||||||
|
@ -1101,7 +1101,7 @@ object frmMain: TfrmMain
|
||||||
item
|
item
|
||||||
Position = 2
|
Position = 2
|
||||||
Text = 'Message'
|
Text = 'Message'
|
||||||
Width = 379
|
Width = 381
|
||||||
end>
|
end>
|
||||||
Header.DefaultHeight = 17
|
Header.DefaultHeight = 17
|
||||||
Header.MainColumn = 2
|
Header.MainColumn = 2
|
||||||
|
|
|
@ -601,7 +601,7 @@ var
|
||||||
lastTile: TWorldItem;
|
lastTile: TWorldItem;
|
||||||
offsetX, offsetY: Integer;
|
offsetX, offsetY: Integer;
|
||||||
begin
|
begin
|
||||||
Logger.EnterMethod([lcClient, lcDebug], 'MouseMove');
|
//Logger.EnterMethod([lcClient, lcDebug], 'MouseMove');
|
||||||
lastTile := CurrentTile;
|
lastTile := CurrentTile;
|
||||||
|
|
||||||
if ssMiddle in Shift then
|
if ssMiddle in Shift then
|
||||||
|
@ -619,7 +619,7 @@ begin
|
||||||
UpdateCurrentTile(X, Y);
|
UpdateCurrentTile(X, Y);
|
||||||
|
|
||||||
FRepaintNeeded := True;
|
FRepaintNeeded := True;
|
||||||
Logger.ExitMethod([lcClient, lcDebug], 'MouseMove');
|
//Logger.ExitMethod([lcClient, lcDebug], 'MouseMove');
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TfrmMain.oglGameWindowMouseUp(Sender: TObject; Button: TMouseButton;
|
procedure TfrmMain.oglGameWindowMouseUp(Sender: TObject; Button: TMouseButton;
|
||||||
|
@ -1915,13 +1915,13 @@ end;
|
||||||
|
|
||||||
procedure TfrmMain.SetCurrentTile(const AValue: TWorldItem);
|
procedure TfrmMain.SetCurrentTile(const AValue: TWorldItem);
|
||||||
begin
|
begin
|
||||||
Logger.EnterMethod([lcClient, lcDebug], 'SetCurrentTile');
|
//Logger.EnterMethod([lcClient, lcDebug], 'SetCurrentTile');
|
||||||
if AValue = FCurrentTile then
|
if AValue = FCurrentTile then
|
||||||
begin
|
begin
|
||||||
Logger.ExitMethod([lcClient, lcDebug], 'SetCurrentTile');
|
//Logger.ExitMethod([lcClient, lcDebug], 'SetCurrentTile');
|
||||||
Exit;
|
Exit;
|
||||||
end;
|
end;
|
||||||
Logger.Send([lcClient, lcDebug], 'Value', AValue);
|
//Logger.Send([lcClient, lcDebug], 'Value', AValue);
|
||||||
|
|
||||||
if FCurrentTile <> nil then
|
if FCurrentTile <> nil then
|
||||||
FCurrentTile.OnDestroy.UnregisterEvent(@OnTileRemoved);
|
FCurrentTile.OnDestroy.UnregisterEvent(@OnTileRemoved);
|
||||||
|
@ -1946,18 +1946,18 @@ begin
|
||||||
end;
|
end;
|
||||||
|
|
||||||
UpdateSelection;
|
UpdateSelection;
|
||||||
Logger.ExitMethod([lcClient, lcDebug], 'SetCurrentTile');
|
//Logger.ExitMethod([lcClient, lcDebug], 'SetCurrentTile');
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TfrmMain.SetSelectedTile(const AValue: TWorldItem);
|
procedure TfrmMain.SetSelectedTile(const AValue: TWorldItem);
|
||||||
begin
|
begin
|
||||||
Logger.EnterMethod([lcClient, lcDebug], 'SetSelectedTile');
|
//Logger.EnterMethod([lcClient, lcDebug], 'SetSelectedTile');
|
||||||
if AValue = FSelectedTile then
|
if AValue = FSelectedTile then
|
||||||
begin
|
begin
|
||||||
Logger.ExitMethod([lcClient, lcDebug], 'SetSelectedTile');
|
//Logger.ExitMethod([lcClient, lcDebug], 'SetSelectedTile');
|
||||||
Exit;
|
Exit;
|
||||||
end;
|
end;
|
||||||
Logger.Send([lcClient, lcDebug], 'Value', AValue);
|
//Logger.Send([lcClient, lcDebug], 'Value', AValue);
|
||||||
|
|
||||||
if FSelectedTile <> nil then
|
if FSelectedTile <> nil then
|
||||||
FSelectedTile.OnDestroy.UnregisterEvent(@OnTileRemoved);
|
FSelectedTile.OnDestroy.UnregisterEvent(@OnTileRemoved);
|
||||||
|
@ -1966,7 +1966,7 @@ begin
|
||||||
FSelectedTile.OnDestroy.RegisterEvent(@OnTileRemoved);
|
FSelectedTile.OnDestroy.RegisterEvent(@OnTileRemoved);
|
||||||
|
|
||||||
UpdateSelection;
|
UpdateSelection;
|
||||||
Logger.ExitMethod([lcClient, lcDebug], 'SetSelectedTile');
|
//Logger.ExitMethod([lcClient, lcDebug], 'SetSelectedTile');
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TfrmMain.SetNormalLights;
|
procedure TfrmMain.SetNormalLights;
|
||||||
|
|
Loading…
Reference in New Issue